feat: Externalize runtime data, including SQLite and caches, to a configurable directory mounted via Docker volumes.

This commit is contained in:
2569718930@qq.com
2026-03-13 17:18:06 +08:00
parent ac9e537070
commit 08217deefb
5 changed files with 61 additions and 3 deletions
+6
View File
@@ -26,6 +26,12 @@ HTTP_PROXY=http://127.0.0.1:7890
LOG_LEVEL=INFO
ENV=production
POLYWEATHER_MAP_URL=https://polyweather-pro.vercel.app/
# Runtime data directory (host path mounted into container at /var/lib/polyweather and /app/data)
POLYWEATHER_RUNTIME_DATA_DIR=/var/lib/polyweather
# Recommended: keep SQLite outside repository workspace
POLYWEATHER_DB_PATH=/var/lib/polyweather/polyweather.db
# Recommended disk cache/state paths (optional; defaults are still /app/data/*)
OPEN_METEO_DISK_CACHE_PATH=/var/lib/polyweather/open_meteo_cache.json
# Unified Auth (Supabase + Google/Email)
POLYWEATHER_AUTH_ENABLED=false
# If true: website APIs require login; if false: guest access, login optional.