43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
# --- Application Configuration ---
|
|
|
|
# --- VAPID Keys (REQUIRED for Web Push) ---
|
|
# Generate these once using npx web-push generate-vapid-keys (or other tools)
|
|
# Keep the private key SECRET!
|
|
VAPID_PUBLIC_KEY=
|
|
VAPID_PRIVATE_KEY=
|
|
|
|
# Subject claim for VAPID. Use a 'mailto:' URI or an 'https:' URL identifying your application.
|
|
# Example: mailto:admin@yourdomain.com or https://yourdomain.com/contact
|
|
VAPID_SUBJECT=mailto:admin@virtonline.eu
|
|
|
|
# Subscription Storage
|
|
SUBSCRIPTIONS_FILE=subscriptions.json
|
|
|
|
# CORS
|
|
ALLOWED_ORIGINS=https://game-timer.virtonline.eu
|
|
ALLOWED_METHODS=POST,OPTIONS,GET
|
|
ALLOWED_HEADERS=Content-Type,Authorization
|
|
|
|
# Logging Configuration
|
|
LOG_LEVEL=INFO
|
|
|
|
# --- Security (Optional) ---
|
|
# If you want to add a simple security layer between Flic and this app.
|
|
# If set, configure Flic's HTTP request to include an "Authorization: Bearer YOUR_SECRET_VALUE" header.
|
|
# use e.g.: openssl rand -hex 32
|
|
FLIC_SECRET=
|
|
|
|
# --- DNS and Network Configuration ---
|
|
# These settings help with Docker DNS resolution issues (EAI_AGAIN errors)
|
|
|
|
# Maximum number of retry attempts for failed DNS resolutions
|
|
MAX_NOTIFICATION_RETRIES=3
|
|
|
|
# Initial delay in milliseconds before first retry (will increase with backoff)
|
|
INITIAL_RETRY_DELAY_MS=1000
|
|
|
|
# DNS resolution timeout in milliseconds
|
|
DNS_TIMEOUT_MS=5000
|
|
|
|
# HTTP request timeout in milliseconds
|
|
HTTP_TIMEOUT_MS=10000 |