# Dokploy environment example for Reforger Crawler # Copy these values into Dokploy Environment Variables. SERVER_HOST=0.0.0.0 SERVER_PORT=8083 SECRET_KEY=change-me-secret ADMIN_SECRET=change-me-admin-secret DISCORD_WEBHOOK_URL= SCRAPER_WEBHOOK_URL= # sqlite or postgres DB_DRIVER=postgres # Used only when DB_DRIVER=sqlite SQLITE_PATH=crawler.db # Option A: full DSN POSTGRES_DSN=postgresql://postgres:change-me-password@postgres-host:5432/dev # Option B: split fields (used when POSTGRES_DSN is empty) POSTGRES_HOST=postgres-host POSTGRES_PORT=5432 POSTGRES_USER=postgres POSTGRES_PASSWORD=change-me-password POSTGRES_DB_NAME=dev POSTGRES_SSLMODE=disable # --- Admin dashboard (/admin/ui/) --------------------------------------------- # Log in with ADMIN_SECRET (use 16+ random characters). Rotating it signs # everyone out. The X-ADMIN-KEY header keeps working for scripts. ADMIN_SESSION_TTL_HOURS=168 # auto = Secure cookie when the request arrived over HTTPS (X-Forwarded-Proto) ADMIN_COOKIE_SECURE=auto # Proxies whose X-Forwarded-For is trusted (comma separated IPs/CIDRs), e.g. the # Traefik network. Without it, client IPs (visitor counts, login throttling) # can be spoofed. TRUSTED_PROXIES=10.0.0.0/8,172.16.0.0/12 # --- Metrics & telemetry --------------------------------------------------------- METRICS_ENABLED=true # Enables GET /metrics (Prometheus) with "Authorization: Bearer ". # Leave empty to disable the endpoint. METRICS_TOKEN= METRICS_MINUTE_RETENTION_DAYS=7 METRICS_HOUR_RETENTION_DAYS=180 EVENTS_RETENTION_DAYS=30 TOP_ITEMS_RETENTION_DAYS=90 # Indexing claims older than this go back to the queue INDEX_TIMEOUT_MINUTES=30