official seafile container

This commit is contained in:
2024-11-30 21:00:23 +01:00
parent ded85734cd
commit 4c5809c473
6 changed files with 90 additions and 10 deletions

View File

@@ -0,0 +1,11 @@
[General]
[Database]
ENGINE = mysql
HOST = seafile-mysql
PORT = 3306
USER = seafile
PASSWD = 26669b06-5358-4693-95f3-833da89c70cb
DB = ccnet_db
CONNECTION_CHARSET = utf8

View File

@@ -0,0 +1,17 @@
import os
daemon = True
workers = 5
# default localhost:8000
bind = "127.0.0.1:8000"
# Pid
pids_dir = '/opt/seafile/pids'
pidfile = os.path.join(pids_dir, 'seahub.pid')
# for file upload, we need a longer timeout value (default is only 30s, too short)
timeout = 1200
limit_request_line = 8190

View File

@@ -0,0 +1,5 @@
[WEBDAV]
enabled = false
port = 8080
share_name = /seafdav

View File

@@ -0,0 +1,19 @@
[fileserver]
port = 8082
[database]
type = mysql
host = seafile-mysql
port = 3306
user = seafile
password = 26669b06-5358-4693-95f3-833da89c70cb
db_name = seafile_db
connection_charset = utf8
[notification]
enabled = false
host = 127.0.0.1
port = 8083
log_level = info
jwt_private_key = -fl9r-9imc*dhtpgx4w9**bdk*8thq!wq6_0_mov*z!3chs(bu

View File

@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
SECRET_KEY = "b'x)npwu6*%19$_*-c+%yl(tudan3)uc9f#*hur3$18yw*6z33+&'"
SERVICE_URL = "http://seafile.example.com/"
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'seahub_db',
'USER': 'seafile',
'PASSWORD': '26669b06-5358-4693-95f3-833da89c70cb',
'HOST': 'seafile-mysql',
'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/Amsterdam'
FILE_SERVER_ROOT = "http://seafile.example.com/seafhttp"