From 028987232d1cb24ae1b6fad384f8d7e5576f7f1c Mon Sep 17 00:00:00 2001 From: alvis Date: Sun, 8 Mar 2026 15:16:17 +0000 Subject: [PATCH] Add Seafile wiki page --- Home.md | 1 + Seafile.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 Seafile.md diff --git a/Home.md b/Home.md index 3f1862b..48705c0 100644 --- a/Home.md +++ b/Home.md @@ -18,6 +18,7 @@ - [[Juris]] — Remote server (83.99.190.32) - [[Adolf]] — Persistent AI assistant (Telegram, GPU, memory) - [[Vaultwarden]] — Password manager (Bitwarden-compatible) +- [[Seafile]] — File sync and document editing ## Quick Start diff --git a/Seafile.md b/Seafile.md new file mode 100644 index 0000000..835c8a1 --- /dev/null +++ b/Seafile.md @@ -0,0 +1,44 @@ +# Seafile + +Self-hosted file sync and share platform with document editing (SeaDoc). + +- **URL**: `https://docs.alogins.net` +- **Admin**: `https://docs.alogins.net/sys/info/` +- **Data**: `/mnt/misc/seafile/` +- **Port**: `127.0.0.1:8078` (proxied via Caddy) + +## Setup + +```bash +cd ~/agap_git/seafile +cp .env.example .env # fill in credentials from Vaultwarden +docker compose up -d +``` + +Credentials stored in Vaultwarden AI collection: + +| Item name | Description | +|-----------|-------------| +| `SEAFILE_MYSQL_DB_PASSWORD` | MariaDB seafile user password | +| `SEAFILE_INIT_MYSQL_ROOT_PASSWORD` | MariaDB root password (first-run only) | +| `SEAFILE_INIT_ADMIN_EMAIL` | Initial admin email | +| `SEAFILE_INIT_ADMIN_PASSWORD` | Initial admin password | +| `SEAFILE_REDIS_PASSWORD` | Redis password | +| `SEAFILE_JWT_PRIVATE_KEY` | JWT signing key | + +## Stack + +| Container | Image | Role | +|-----------|-------|------| +| `seafile` | `seafileltd/seafile-mc:13.0` | Main app (port 8078 on host) | +| `seadoc` | `seafileltd/sdoc-server:2.0` | Document editing | +| `seafile-mysql` | `mariadb:10.11` | Database | +| `seafile-redis` | `redis` | Cache | +| `seafile-caddy` | `lucaslorentz/caddy-docker-proxy` | Internal proxy (port 8077, unused) | + +## Notes + +- `SEAFILE_SERVER_PROTOCOL=https` required — setting it to `http` causes CSRF errors when accessed via HTTPS +- `TIME_ZONE` must be a valid tz name (e.g. `Asia/Dubai`) — `Etc/UTC+4` is invalid and causes container crash +- `.env` is gitignored — credentials stored in Vaultwarden only +- Caddy proxies directly to `seafile` container on port 8078, bypassing the internal seafile-caddy