This commit is contained in:
zino
2023-11-29 16:25:50 +01:00
parent 5016e9f279
commit ea3c57318c
4 changed files with 44 additions and 9 deletions

23
.gitignore vendored
View File

@@ -1,15 +1,20 @@
# Ignore everything in the volumes/html directory
# Ignore everything in the volumes directory
volumes/*
# But not these directories
!volumes/seafile-data
!volumes/seafile-mariadb
!volumes/seafile-memcached
# Unignore directories leading to seahub_settings.py
!volumes/seafile-data/
!volumes/seafile-data/seafile/
!volumes/seafile-data/seafile/conf/
# Ignore contents of these directories
# Unignore seahub_settings.py
!volumes/seafile-data/seafile/conf/seahub_settings.py
# Ignore contents of seafile-data except for seahub_settings.py
volumes/seafile-data/*
!volumes/seafile-data/seafile/
!volumes/seafile-data/seafile/conf/
!volumes/seafile-data/seafile/conf/seahub_settings.py
# Keep seafile-mariadb and seafile-memcached directories but ignore their contents
volumes/seafile-mariadb/*
volumes/seafile-memcached/*
# Do not ignore a special file name
!.gitkeep

View File

View File

@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
SECRET_KEY = "b'xm9@_ph2%*1ex-pcp$t3kl1hpgt!10rkzf$5&9mcoxeq6-hv!g'"
SERVICE_URL = "https://seafile.zinomedia.de/"
CSRF_TRUSTED_ORIGINS = ['https://seafile.zinomedia.de']
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'seahub_db',
'USER': 'seafile',
'PASSWORD': 'ab3b76c3-0d39-4f0b-af06-e89a846ab1ee',
'HOST': 'seafile-mariadb',
'PORT': '3306',
'OPTIONS': {'charset': 'utf8mb4'},
}
}
CACHES = {
'default': {
'BACKEND': 'django_pylibmc.memcached.PyLibMCCache',
'LOCATION': 'memcached:11211',
},
'locmem': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
},
}
COMPRESS_CACHE_BACKEND = 'locmem'
TIME_ZONE = 'Europe/Berlin'
FILE_SERVER_ROOT = "https://seafile.zinomedia.de/seafhttp"