diff --git a/caddy/Caddyfile b/caddy/Caddyfile index bd4f953..76f2a7b 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -31,7 +31,7 @@ rik.veenboer.xyz \ *.rik.veenboer.xyz \ { - # reverse_proxy nginx + reverse_proxy nginx handle_path /test/* { reverse_proxy host:12345 } @@ -63,7 +63,7 @@ import unprotected grafana host:3333 import unprotected pgadmin host:5050 import unprotected homarr host:17575 import unprotected jellyseerr host:15055 -import unprotected seafile host:12380 +#import unprotected seafile host:12380 (authentik) { reverse_proxy /outpost.goauthentik.io/* http://host:19000 @@ -238,16 +238,3 @@ geo.rik.veenboer.xyz { } } } - -xx.rik.veenboer.xyz { - log { - output file /var/log/seafile.log - } - handle /seafhttp* { - uri strip_prefix seafhttp - reverse_proxy host:18082 - } - handle { - reverse_proxy host:12380 - } - } diff --git a/docker-compose.seafile.yml b/docker-compose.seafile.yml index 86bf35a..453de1a 100644 --- a/docker-compose.seafile.yml +++ b/docker-compose.seafile.yml @@ -15,44 +15,3 @@ services: volumes: - /opt/seafile:/seafile - /media/sync/seafile:/seafile/seafile-data - - seafile-mysql: - image: mariadb:10.11 - container_name: seafile-mysql - environment: - - MYSQL_ROOT_PASSWORD=${SEAFILE_MYSQL_DB_PASSWORD} - # - MYSQL_LOG_CONSOLE=true - - MARIADB_AUTO_UPGRADE=1 - # volumes: - # - /opt/seafile-new/tmp:/host - # - /opt/seafile-new/db:/var/lib/mysql - env_file: - - /opt/seafile-new/.env - - seafile-memcached: - image: memcached:1.6.18 - container_name: seafile-memcached - entrypoint: memcached -m 256 - - seafile-server: - image: seafileltd/seafile-mc:12.0-latest - container_name: seafile-server - ports: - - "12380:80" - - 8100:8000 - - 8180:8080 - - 8182:8082 - # volumes: - # - /opt/seafile-new/tmp:/host - # - /opt/seafile-new/server:/shared - # - /media/sync/seafile:/shared/seafile/seafile-data - environment: - - DB_HOST=seafile-mysql - - INIT_SEAFILE_MYSQL_ROOT_PASSWORD=${SEAFILE_MYSQL_DB_PASSWORD} - - TIME_ZONE=Europe/Amsterdam - # - SEAFILE_SERVER_HOSTNAME=rik.veenboer.xyz - depends_on: - - seafile-mysql - - seafile-memcached - env_file: - - /opt/seafile-new/.env diff --git a/seafile/docker-compose.seafile.yml b/seafile-new/docker-compose.seafile.yml similarity index 100% rename from seafile/docker-compose.seafile.yml rename to seafile-new/docker-compose.seafile.yml diff --git a/seafile-new/server/seafile/conf/gunicorn.conf.py b/seafile-new/server/seafile/conf/gunicorn.conf.py deleted file mode 100644 index 2a437dc..0000000 --- a/seafile-new/server/seafile/conf/gunicorn.conf.py +++ /dev/null @@ -1,17 +0,0 @@ - -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 diff --git a/seafile-new/server/seafile/conf/seafdav.conf b/seafile-new/server/seafile/conf/seafdav.conf deleted file mode 100644 index eb0252b..0000000 --- a/seafile-new/server/seafile/conf/seafdav.conf +++ /dev/null @@ -1,5 +0,0 @@ - -[WEBDAV] -enabled = false -port = 8080 -share_name = /seafdav diff --git a/seafile-new/server/seafile/conf/seafile.conf b/seafile-new/server/seafile/conf/seafile.conf deleted file mode 100644 index 55f5cec..0000000 --- a/seafile-new/server/seafile/conf/seafile.conf +++ /dev/null @@ -1,12 +0,0 @@ -[fileserver] -port = 8082 - -[database] -type = mysql -host = seafile-mysql -port = 3306 -user = seafile -password = f89cda4d-459b-4c9f-b97a-43cb5797767f -db_name = seafile_db -connection_charset = utf8 - diff --git a/seafile-new/server/seafile/conf/seahub_settings.py b/seafile-new/server/seafile/conf/seahub_settings.py deleted file mode 100755 index 5ebbebf..0000000 --- a/seafile-new/server/seafile/conf/seahub_settings.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -SECRET_KEY = "^$t0mf*r^#(+*c4bl2e^ftk(f06k7yaov@j^2-c^p2m)%_(axh" -SERVICE_URL = "http://seafile.example.com" - -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.mysql', - 'NAME': 'seahub_db', - 'USER': 'seafile', - 'PASSWORD': 'f89cda4d-459b-4c9f-b97a-43cb5797767f', - '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'