CSRF_TRUSTED_ORIGINS env

This commit is contained in:
SkywalkerSpace 2025-11-03 11:27:46 +08:00
parent aaee52b7e7
commit 22aba499ed
4 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,7 @@ This part of configurations is only valid in `CACHE_PROVIDER=memcached`:
- `TIME_ZONE`: Time zone (default `UTC`)
- `INIT_SEAFILE_ADMIN_EMAIL`: Admin username
- `INIT_SEAFILE_ADMIN_PASSWORD`: Admin password
- `CSRF_TRUSTED_ORIGINS`: A list of trusted origins for CSRF protection, JSON string, example: `["https://seafile.example.com", "https://seafile.com"]`.
## SeaDoc configurations (only valid after integrating SeaDoc)

View File

@ -79,6 +79,7 @@ services:
- SEAFILE_AI_SERVER_URL=${SEAFILE_AI_SERVER_URL:-http://seafile-ai:8888}
- SEAFILE_AI_SECRET_KEY=${JWT_PRIVATE_KEY:?Variable is not set or empty}
- MD_FILE_COUNT_LIMIT=${MD_FILE_COUNT_LIMIT:-100000}
- CSRF_TRUSTED_ORIGINS=${CSRF_TRUSTED_ORIGINS}
labels:
caddy: ${SEAFILE_SERVER_PROTOCOL:-http}://${SEAFILE_SERVER_HOSTNAME:?Variable is not set or empty}
caddy.reverse_proxy: "{{upstreams 80}}"

View File

@ -56,3 +56,4 @@ services:
- SEAFILE_AI_SERVER_URL=$SEAFILE_AI_SERVER_URL
- SEAFILE_AI_SECRET_KEY=${JWT_PRIVATE_KEY:?Variable is not set or empty}
- MD_FILE_COUNT_LIMIT=${MD_FILE_COUNT_LIMIT:-100000}
- CSRF_TRUSTED_ORIGINS=${CSRF_TRUSTED_ORIGINS}

View File

@ -91,6 +91,7 @@ services:
- SEAFILE_AI_SERVER_URL=${SEAFILE_AI_SERVER_URL:-http://seafile-ai:8888}
- SEAFILE_AI_SECRET_KEY=${JWT_PRIVATE_KEY:?Variable is not set or empty}
- MD_FILE_COUNT_LIMIT=${MD_FILE_COUNT_LIMIT:-100000}
- CSRF_TRUSTED_ORIGINS=${CSRF_TRUSTED_ORIGINS}
labels:
caddy: ${SEAFILE_SERVER_PROTOCOL:-http}://${SEAFILE_SERVER_HOSTNAME:?Variable is not set or empty}
caddy.reverse_proxy: "{{upstreams 80}}"