🛡️ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!
# Warracker Environment Configuration Example
# Copy this file to .env and modify the values as needed
# Database Configuration
# Set DB_USER and DB_PASSWORD explicitly (or supply credentials via DATABASE_URL).
# There are no built-in defaults: startup fails if required credentials are missing.
DB_USER=warranty_user
DB_PASSWORD=your_secure_database_password
# Optional: set both DB_ADMIN_USER and DB_ADMIN_PASSWORD if you want initial
# migrations to create a separate PostgreSQL admin role (no built-in defaults).
# DB_ADMIN_USER=warracker_admin
# DB_ADMIN_PASSWORD=your_secure_admin_password
# DB_HOST=warrackerdb
# DB_NAME=warranty_db
# DB_PORT=5432
# Application Security
SECRET_KEY=your_very_secure_flask_secret_key_change_this_in_production
# Optional: custom path for persisting an auto-generated SECRET_KEY (defaults to $UPLOAD_FOLDER/.secret_key)
# SECRET_KEY_FILE=/data/uploads/.secret_key
# Optional: set to true only if behind a reverse proxy on a public IP (local/private proxies are trusted automatically)
# TRUST_PROXY_HEADERS=false
# Optional: comma-separated origins allowed to send cross-origin requests with credentials
# CORS_ALLOWED_ORIGINS=
# 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
[email protected]
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
FLASK_ENV=production # Forces OIDC to route to and from https://your-warracker-domain instead of http
# Memory and Performance Settings
WARRACKER_MEMORY_MODE=optimized
MAX_UPLOAD_MB=16
NGINX_MAX_BODY_SIZE_VALUE=16M
# Optional: total timeout (seconds) when fetching a product photo from a URL (default: 60)
# PHOTO_FETCH_TIMEOUT_SECONDS=60
# Optional: per-worker PostgreSQL connection pool sizing and wait timeout
# DB_POOL_MIN=1
# DB_POOL_MAX=4
# DB_POOL_WAIT_SECONDS=30
# =====================
# APPRISE NOTIFICATIONS
# =====================
# Enable/disable Apprise notifications
APPRISE_ENABLED=false
# Notification URLs (comma-separated)
# Examples:
# Email: mailto://user:[email protected]
# 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:[email protected]
# 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:[email protected],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