Compare commits
16 Commits
f614e67e8b
...
2da6061795
| Author | SHA1 | Date | |
|---|---|---|---|
| 2da6061795 | |||
| c89eaacd42 | |||
| 682dc6942a | |||
| 064f803784 | |||
| 9b4bf1e255 | |||
| fc7f4f4b7a | |||
| b87e30f6b4 | |||
| faa32510df | |||
| ce7ab594e2 | |||
| f500c00896 | |||
| b246923283 | |||
| 907ad382dc | |||
| 102d2e2748 | |||
| f2de1e55d0 | |||
| ba9704d3c2 | |||
| 95a5b893ec |
39
.env
39
.env
@@ -1,39 +0,0 @@
|
||||
# Flic to PWA WebPush Configuration
|
||||
|
||||
# --- VAPID Keys (Required) ---
|
||||
# Generate using: npx web-push generate-vapid-keys
|
||||
VAPID_PUBLIC_KEY=BKfRJXjSQmAJ452gLwlK_8scGrW6qMU1mBRp39ONtcQHkSsQgmLAaODIyGbgHyRpnDEv3HfXV1oGh3SC0fHxY0E
|
||||
VAPID_PRIVATE_KEY=ErEgsDKYQi5j2KPERC_gCtrEALAD0k-dWSwrrcD0-JU
|
||||
VAPID_SUBJECT=mailto:admin@virtonline.eu
|
||||
|
||||
# --- Server Configuration ---
|
||||
# Internal port for the Node.js app
|
||||
PORT=3000
|
||||
SUBSCRIPTIONS_FILE=subscriptions.json
|
||||
DEFAULT_BUTTON_NAME=game-button
|
||||
|
||||
# --- Authentication (Optional) ---
|
||||
# If both USERNAME and PASSWORD are set, Basic Auth will be enabled for:
|
||||
# - POST /subscribe
|
||||
# - GET /webhook
|
||||
# Leave blank to disable authentication.
|
||||
BASIC_AUTH_USERNAME=player
|
||||
BASIC_AUTH_PASSWORD=SevenOfNine
|
||||
|
||||
# --- Web Push Retry Configuration (Optional) ---
|
||||
# Number of retries on failure (e.g., DNS issues)
|
||||
NOTIFICATION_MAX_RETRIES=3
|
||||
# First retry delay in milliseconds (minimal delay for immediate retry)
|
||||
NOTIFICATION_FIRST_RETRY_DELAY_MS=10
|
||||
# Base delay in milliseconds for subsequent retries (used for exponential backoff)
|
||||
NOTIFICATION_SUBSEQUENT_RETRY_DELAY_MS=1000
|
||||
|
||||
# --- Network Configuration (Optional) ---
|
||||
# Timeout for DNS lookups (ms)
|
||||
DNS_TIMEOUT_MS=5000
|
||||
# Timeout for outgoing HTTP requests (ms)
|
||||
HTTP_TIMEOUT_MS=10000
|
||||
|
||||
# --- Logging ---
|
||||
# Controls log verbosity: error, warn, info, debug
|
||||
LOG_LEVEL=info
|
||||
Reference in New Issue
Block a user