mirror of
https://github.com/sassanix/Warracker.git
synced 2025-12-31 10:39:35 -06:00
96 lines
2.5 KiB
Plaintext
96 lines
2.5 KiB
Plaintext
# Warracker Environment Configuration Example
|
|
# Copy this file to .env and modify the values as needed
|
|
|
|
# Database Configuration
|
|
DB_PASSWORD=your_secure_database_password
|
|
DB_ADMIN_PASSWORD=your_secure_admin_password
|
|
# DB_PORT=5432
|
|
|
|
# Application Security
|
|
SECRET_KEY=your_very_secure_flask_secret_key_change_this_in_production
|
|
|
|
# Email Configuration (for password resets and notifications)
|
|
SMTP_HOST=smtp.gmail.com
|
|
SMTP_PORT=587
|
|
SMTP_USERNAME=your-email-username
|
|
SMTP_PASSWORD=your-app-password
|
|
SMTP_FROM_ADDRESS=your-email@somewhere.com
|
|
SMTP_USE_TLS=true
|
|
|
|
# Application URLs
|
|
FRONTEND_URL=http://localhost:8005
|
|
APP_BASE_URL=http://localhost:8005
|
|
|
|
# OIDC SSO Configuration (Optional)
|
|
OIDC_PROVIDER_NAME=oidc
|
|
OIDC_CLIENT_ID=your_oidc_client_id
|
|
OIDC_CLIENT_SECRET=your_oidc_client_secret
|
|
OIDC_ISSUER_URL=https://your-oidc-provider.com/auth/realms/your-realm
|
|
OIDC_SCOPE=openid email profile
|
|
OIDC_ADMIN_GROUP=admin # Requires group scope
|
|
|
|
# Memory and Performance Settings
|
|
WARRACKER_MEMORY_MODE=optimized
|
|
MAX_UPLOAD_MB=16
|
|
NGINX_MAX_BODY_SIZE_VALUE=16M
|
|
|
|
# =====================
|
|
# APPRISE NOTIFICATIONS
|
|
# =====================
|
|
|
|
# Enable/disable Apprise notifications
|
|
APPRISE_ENABLED=false
|
|
|
|
# Notification URLs (comma-separated)
|
|
# Examples:
|
|
# Email: mailto://user:password@gmail.com
|
|
# Discord: discord://webhook_id/webhook_token
|
|
# Slack: slack://TokenA/TokenB/TokenC/Channel
|
|
# Telegram: telegram://BotToken/ChatID
|
|
# Microsoft Teams: msteams://TokenA/TokenB/TokenC/
|
|
# Webhooks: json://webhook.site/your-unique-id
|
|
APPRISE_URLS=
|
|
|
|
# Days before expiration to send notifications (comma-separated)
|
|
APPRISE_EXPIRATION_DAYS=7,30
|
|
|
|
# Time of day to send notifications (HH:MM format, 24-hour)
|
|
APPRISE_NOTIFICATION_TIME=09:00
|
|
|
|
# Prefix for notification titles
|
|
APPRISE_TITLE_PREFIX=[Warracker]
|
|
|
|
# =====================
|
|
# APPRISE URL EXAMPLES
|
|
# =====================
|
|
|
|
# Gmail (using app password)
|
|
# APPRISE_URLS=mailto://username:app-password@gmail.com
|
|
|
|
# Discord Webhook
|
|
# APPRISE_URLS=discord://webhook_id/webhook_token
|
|
|
|
# Slack
|
|
# APPRISE_URLS=slack://TokenA/TokenB/TokenC/Channel
|
|
|
|
# Telegram Bot
|
|
# APPRISE_URLS=telegram://BotToken/ChatID
|
|
|
|
# Microsoft Teams
|
|
# APPRISE_URLS=msteams://TokenA/TokenB/TokenC/
|
|
|
|
# Multiple services (comma-separated)
|
|
# APPRISE_URLS=mailto://user:pass@gmail.com,discord://webhook_id/webhook_token,telegram://BotToken/ChatID
|
|
|
|
# Pushover
|
|
# APPRISE_URLS=pover://user@token
|
|
|
|
# Ntfy
|
|
# APPRISE_URLS=ntfy://topic
|
|
|
|
# Generic Webhook
|
|
# APPRISE_URLS=json://webhook.site/your-unique-id
|
|
|
|
# For more services and URL formats, visit:
|
|
# https://github.com/caronc/apprise/wiki
|