chore: add CORS config, plan doc, update submodule

This commit is contained in:
datadunia
2026-05-21 14:18:18 +07:00
parent 6d9939e765
commit 685ae341d6
3 changed files with 122 additions and 1 deletions
+10
View File
@@ -30,3 +30,13 @@ VITE_API_BASE_URL=http://localhost:8080/api/v1
# 6. General Settings
GIN_MODE=release
LOG_LEVEL=info
# 7. CORS Configuration
# Comma-separated list of allowed origins for the API.
# Use '*' to allow all origins (NOT recommended for production).
# Example: https://dash.yourdomain.com,https://admin.yourdomain.com
CORS_ALLOWED_ORIGINS=http://localhost:5173
# 8. Share Link Configuration
# TTL for peer config share links (Go duration format)
SHARE_LINK_TTL=24h