From 1ac22311a7a7db5ab30b61c3a2af002d6ecb5598 Mon Sep 17 00:00:00 2001 From: Rik Veenboer Date: Sat, 16 Nov 2024 16:45:52 +0100 Subject: [PATCH] add seafile configuration --- seafile/conf/ccnet.conf | 1 + seafile/conf/gunicorn.conf.py | 16 ++++++++++++++++ seafile/conf/seafdav.conf | 6 ++++++ seafile/conf/seafevents.conf | 17 +++++++++++++++++ seafile/conf/seafile.conf | 2 ++ seafile/conf/seahub_settings.py | 5 +++++ 6 files changed, 47 insertions(+) create mode 100644 seafile/conf/ccnet.conf create mode 100644 seafile/conf/gunicorn.conf.py create mode 100644 seafile/conf/seafdav.conf create mode 100644 seafile/conf/seafevents.conf create mode 100644 seafile/conf/seafile.conf create mode 100644 seafile/conf/seahub_settings.py diff --git a/seafile/conf/ccnet.conf b/seafile/conf/ccnet.conf new file mode 100644 index 0000000..e94cbbd --- /dev/null +++ b/seafile/conf/ccnet.conf @@ -0,0 +1 @@ +[General] diff --git a/seafile/conf/gunicorn.conf.py b/seafile/conf/gunicorn.conf.py new file mode 100644 index 0000000..d3778ad --- /dev/null +++ b/seafile/conf/gunicorn.conf.py @@ -0,0 +1,16 @@ +import os + +daemon = True +workers = 5 + +# default localhost:8000 +bind = "0.0.0.0:8000" + +# Pid +pids_dir = '/opt/haiwen/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 diff --git a/seafile/conf/seafdav.conf b/seafile/conf/seafdav.conf new file mode 100644 index 0000000..fd23ef8 --- /dev/null +++ b/seafile/conf/seafdav.conf @@ -0,0 +1,6 @@ +[WEBDAV] +enabled = true +port = 8080 +fastcgi = true +host = 0.0.0.0 +share_name = /seafdav diff --git a/seafile/conf/seafevents.conf b/seafile/conf/seafevents.conf new file mode 100644 index 0000000..9a42d6d --- /dev/null +++ b/seafile/conf/seafevents.conf @@ -0,0 +1,17 @@ +[DATABASE] +type = mysql +username = +password = +name = + + + +[SEAHUB EMAIL] +enabled = true + +## interval of sending Seahub email. Can be s(seconds), m(minutes), h(hours), d(days) +interval = 30m + +# Enable statistics +[STATISTICS] +enabled=true diff --git a/seafile/conf/seafile.conf b/seafile/conf/seafile.conf new file mode 100644 index 0000000..ede4b0f --- /dev/null +++ b/seafile/conf/seafile.conf @@ -0,0 +1,2 @@ +[fileserver] +port=8082 diff --git a/seafile/conf/seahub_settings.py b/seafile/conf/seahub_settings.py new file mode 100644 index 0000000..6c4823a --- /dev/null +++ b/seafile/conf/seahub_settings.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +SECRET_KEY = "zt^$p=*-yzytt3)1lidvsfjrq7qe+3t^$nw6wp_+bqhttxy4c!" + +SERVICE_URL = "https://seafile.rik.veenboer.xyz/" +