let traefik handle CORS

This commit is contained in:
cpu
2025-03-31 13:17:52 +02:00
parent 81e11c155e
commit 2120e965fb
6 changed files with 45 additions and 129 deletions

View File

@@ -20,14 +20,6 @@ DEFAULT_BUTTON_NAME=game-button
BASIC_AUTH_USERNAME=user12345
BASIC_AUTH_PASSWORD=password
# --- CORS Configuration (Optional but Recommended) ---
# Comma-separated list of allowed origins for requests (e.g., your PWA frontend URL)
# If blank or not set, CORS might block browser requests (like from a setup page).
# Use '*' carefully, preferably list specific domains.
ALLOWED_ORIGINS=https://game-timer.virtonline.eu,http://localhost
ALLOWED_METHODS=POST,GET
ALLOWED_HEADERS=Content-Type,Authorization,button-name,button-battery-level,timestamp
# --- Web Push Retry Configuration (Optional) ---
# Number of retries on failure (e.g., DNS issues)
NOTIFICATION_MAX_RETRIES=3