Add Seafile config files

This commit is contained in:
2025-12-06 14:17:04 +01:00
parent d629f22a78
commit 1689728f32
5 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
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,4 @@
[WEBDAV]
enabled = false
port = 8080
share_name = /seafdav

View File

@@ -0,0 +1,20 @@
[DATABASE]
type = mysql
host = seafile-mysql
port = 3306
username = seafile
password = PASSWORD
name = seahub_db
[SEAHUB EMAIL]
enabled = false
## interval of sending Seahub email. Can be s(seconds), m(minutes), h(hours), d(days)
interval = 30m
[STATISTICS]
enabled=true
[FILE HISTORY]
enabled = true
suffix = md,txt,doc,docx,xls,xlsx,ppt,pptx,sdoc

View File

@@ -0,0 +1,11 @@
[fileserver]
port = 8082
[database]
type = mysql
host = seafile-mysql
port = 3306
user = seafile
password = PASSWORD
db_name = seafile_db
connection_charset = utf8

View File

@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
SECRET_KEY = "(e(e8j+s8*5wblircifdl0805sz^&l&%-q(xb3=seonu7afp(4"
DOMAIN = "bram.veenboer.xyz"
SERVICE_URL = f"https://seafile.{DOMAIN}"
CSRF_TRUSTED_ORIGINS = [SERVICE_URL]
TIME_ZONE = "Europe/Amsterdam"
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'seahub_db',
'USER': 'seafile',
'PASSWORD': 'PASSWORD',
'HOST': 'seafile-mysql',
'PORT': '3306',
'OPTIONS': {'charset': 'utf8mb4'},
}
}