fix: use NAS hostname for API URL and add CORS origins

This commit is contained in:
KV-Tube Deployer 2026-03-26 13:34:15 +07:00
parent f3ac7c99b8
commit 68824d70ff

View file

@ -18,6 +18,7 @@ services:
- KVTUBE_DATA_DIR=/app/data - KVTUBE_DATA_DIR=/app/data
- GIN_MODE=release - GIN_MODE=release
- NODE_ENV=production - NODE_ENV=production
- NEXT_PUBLIC_API_URL=http://127.0.0.1:8981/api - NEXT_PUBLIC_API_URL=http://ut.khoavo.myds.me:8981/api
- CORS_ALLOWED_ORIGINS=https://ut.khoavo.myds.me,http://ut.khoavo.myds.me:5011,http://localhost:3000,http://127.0.0.1:3000
labels: labels:
- "com.centurylinklabs.watchtower.enable=true" - "com.centurylinklabs.watchtower.enable=true"