clean up
This commit is contained in:
23
.env.example
23
.env.example
@@ -4,12 +4,15 @@
|
||||
# Generate using: npx web-push generate-vapid-keys
|
||||
VAPID_PUBLIC_KEY=
|
||||
VAPID_PRIVATE_KEY=
|
||||
VAPID_SUBJECT=mailto:mailto:admin@virtonline.eu # Contact email/URL for push service
|
||||
VAPID_SUBJECT=mailto:mailto:admin@virtonline.eu
|
||||
|
||||
# --- Server Configuration ---
|
||||
PORT=3000 # Internal port for the Node.js app
|
||||
SUBSCRIPTIONS_FILE=subscriptions.json # Path inside the container
|
||||
DEFAULT_BUTTON_NAME=game-button # Default button name to use when not specified
|
||||
# Internal port for the Node.js app
|
||||
PORT=3000
|
||||
# Path inside the container
|
||||
SUBSCRIPTIONS_FILE=/app/subscriptions.json
|
||||
# Default button name to use when not specified
|
||||
DEFAULT_BUTTON_NAME=game-button
|
||||
|
||||
# --- Authentication (Optional) ---
|
||||
# If both USERNAME and PASSWORD are set, Basic Auth will be enabled for:
|
||||
@@ -28,12 +31,16 @@ ALLOWED_METHODS=POST,GET,OPTIONS
|
||||
ALLOWED_HEADERS=Content-Type,Authorization
|
||||
|
||||
# --- Web Push Retry Configuration (Optional) ---
|
||||
MAX_NOTIFICATION_RETRIES=3 # Number of retries on failure (e.g., DNS issues)
|
||||
INITIAL_RETRY_DELAY_MS=1000 # Initial delay in milliseconds
|
||||
# Number of retries on failure (e.g., DNS issues)
|
||||
MAX_NOTIFICATION_RETRIES=3
|
||||
# Initial delay in milliseconds
|
||||
INITIAL_RETRY_DELAY_MS=1000
|
||||
|
||||
# --- Network Configuration (Optional) ---
|
||||
DNS_TIMEOUT_MS=5000 # Timeout for DNS lookups (ms)
|
||||
HTTP_TIMEOUT_MS=10000 # Timeout for outgoing HTTP requests (ms)
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user