example.env 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. VERSION=2.3
  2. SECRET_KEY="your-secret-key-here-generate-with-python-secrets"
  3. SQUID_HOST="127.0.0.1"
  4. SQUID_PORT=3128
  5. LOG_FORMAT=DETAILED
  6. FLASK_DEBUG=True
  7. DATABASE_TYPE="SQLITE"
  8. SQUID_LOG="/var/log/squid/access.log"
  9. SQUID_CACHE_LOG="/var/log/squid/cache.log"
  10. DATABASE_STRING_CONNECTION="/opt/SquidStats/"
  11. REFRESH_INTERVAL=60
  12. HTTP_PROXY=""
  13. HTTPS_PROXY=
  14. NO_PROXY=
  15. SQUID_CONFIG_PATH=/home/manuel/Desktop/config/squid.conf
  16. ACL_FILES_DIR=/home/manuel/Desktop/config/acls
  17. LISTEN_HOST="127.0.0.1"
  18. LISTEN_PORT=8080
  19. FIRST_PASSWORD="mipasswordsegura"
  20. JWT_EXPIRY_HOURS=24
  21. MAX_LOGIN_ATTEMPTS=5
  22. LOCKOUT_DURATION_MINUTES=15
  23. # Telegram Notifications (optional)
  24. # Get your API credentials from https://my.telegram.org/apps
  25. TELEGRAM_ENABLED=false
  26. TELEGRAM_API_ID=
  27. TELEGRAM_API_HASH=
  28. # Option 1: Use a bot (recommended) - Get token from @BotFather
  29. TELEGRAM_BOT_TOKEN=
  30. # Option 2: Use your user account (requires phone number and authentication)
  31. TELEGRAM_PHONE=
  32. # Session name for storing authentication
  33. TELEGRAM_SESSION_NAME=squidstats_bot
  34. # Comma-separated list of recipients (usernames with @, user IDs, or chat IDs)
  35. # Example: @username1,@username2,123456789
  36. TELEGRAM_RECIPIENTS=