modified
This commit is contained in:
23
.gitignore
vendored
23
.gitignore
vendored
@@ -1,15 +1,20 @@
|
|||||||
# Ignore everything in the volumes/html directory
|
# Ignore everything in the volumes directory
|
||||||
volumes/*
|
volumes/*
|
||||||
|
|
||||||
# But not these directories
|
# Unignore directories leading to seahub_settings.py
|
||||||
!volumes/seafile-data
|
!volumes/seafile-data/
|
||||||
!volumes/seafile-mariadb
|
!volumes/seafile-data/seafile/
|
||||||
!volumes/seafile-memcached
|
!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/*
|
||||||
|
!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-mariadb/*
|
||||||
volumes/seafile-memcached/*
|
volumes/seafile-memcached/*
|
||||||
|
|
||||||
# Do not ignore a special file name
|
|
||||||
!.gitkeep
|
|
||||||
30
volumes/seafile-data/seafile/conf/seahub_settings.py
Normal file
30
volumes/seafile-data/seafile/conf/seahub_settings.py
Normal 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"
|
||||||
Reference in New Issue
Block a user