From 7e889d8530cde4095a1270a29004b0f11c8dc716 Mon Sep 17 00:00:00 2001 From: Alvis Date: Sun, 8 Mar 2026 15:36:30 +0000 Subject: [PATCH] Add OnlyOffice integration for Seafile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - seafile/onlyoffice.yml: OnlyOffice Document Server 8.1 with JWT auth - Expose on 127.0.0.1:6233, proxied via Caddy at office.alogins.net - Caddyfile: add office.alogins.net → localhost:6233 - JWT secret stored in Vaultwarden (ONLYOFFICE_JWT_SECRET) - seahub_settings.py configured inside container with ENABLE_ONLYOFFICE=True Co-Authored-By: Claude Sonnet 4.6 --- Caddyfile | 4 ++++ seafile/onlyoffice.yml | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 seafile/onlyoffice.yml diff --git a/Caddyfile b/Caddyfile index 0add350..3852b49 100644 --- a/Caddyfile +++ b/Caddyfile @@ -81,6 +81,10 @@ docs.alogins.net { reverse_proxy localhost:8078 } +office.alogins.net { + reverse_proxy localhost:6233 +} + vw.alogins.net { reverse_proxy localhost:8041 } diff --git a/seafile/onlyoffice.yml b/seafile/onlyoffice.yml new file mode 100644 index 0000000..93c904c --- /dev/null +++ b/seafile/onlyoffice.yml @@ -0,0 +1,18 @@ +services: + onlyoffice: + image: ${ONLYOFFICE_IMAGE:-onlyoffice/documentserver:8.1.0.1} + container_name: seafile-onlyoffice + restart: unless-stopped + environment: + - JWT_ENABLED=true + - JWT_SECRET=${ONLYOFFICE_JWT_SECRET:?Variable is not set or empty} + volumes: + - "${ONLYOFFICE_VOLUME:-/opt/onlyoffice}:/var/lib/onlyoffice" + ports: + - "127.0.0.1:6233:80" + networks: + - seafile-net + +networks: + seafile-net: + name: seafile-net