fix: 拒绝过短密钥,并把对外端口只留在本机

This commit is contained in:
2026-11-16 02:41:13 +08:00
parent 42f2b457a0
commit ec41af9489
11 changed files with 85 additions and 12 deletions
+2 -1
View File
@@ -3,12 +3,13 @@ services:
web:
build: .
ports:
- "8000:8000"
- "127.0.0.1:8000:8000"
environment:
EUNIV_SECRET_KEY: ${EUNIV_SECRET_KEY:?请在环境变量或 .env 中设置 EUNIV_SECRET_KEY}
EUNIV_DB_PATH: /data/euniv.db
EUNIV_ADMIN_PASSWORD: ${EUNIV_ADMIN_PASSWORD:-}
EUNIV_ADMIN_RESET: ${EUNIV_ADMIN_RESET:-}
EUNIV_COOKIE_SECURE: ${EUNIV_COOKIE_SECURE:-1}
volumes:
- euniv-data:/data