54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
# Podstawy
|
||
FLASK_DEBUG=false
|
||
SECRET_KEY=change-me
|
||
|
||
# Limity
|
||
MAX_CONTENT_LENGTH=52428800
|
||
RATE_LIMIT_DEFAULT="100 per minute"
|
||
RATE_LIMIT_CONVERT="100 per minute"
|
||
|
||
# Redis – wybierz REDIS_URL lub HOST/PORT/DB
|
||
REDIS_URL=redis://localhost:6379/7
|
||
# REDIS_HOST=localhost
|
||
# REDIS_PORT=6379
|
||
# REDIS_DB=7
|
||
|
||
# Basic Auth dla /stats
|
||
STATS_BASIC_AUTH_ENABLED=true
|
||
STATS_BASIC_AUTH_REALM=Stats
|
||
STATS_BASIC_AUTH_USER=admin
|
||
STATS_BASIC_AUTH_PASS=strong-password
|
||
|
||
# Cache (Varnish-friendly)
|
||
CACHE_ENABLED=true
|
||
CACHE_S_MAXAGE=43200
|
||
CACHE_MAX_AGE=3600
|
||
USE_REDIS_BODY_CACHE=false
|
||
|
||
# Stream / aiohttp
|
||
AIOHTTP_TOTAL_TIMEOUT=70
|
||
AIOHTTP_CONNECT_TIMEOUT=10
|
||
AIOHTTP_SOCK_CONNECT_TIMEOUT=10
|
||
AIOHTTP_SOCK_READ_TIMEOUT=60
|
||
READ_CHUNK=65536
|
||
STREAM_LINE_LIMIT=4096
|
||
|
||
# Serwer
|
||
BIND_HOST=127.0.0.1
|
||
BIND_PORT=8283
|
||
|
||
# Domyślny URL źródłowy (opcjonalnie)
|
||
DEFAULT_SOURCE_URL="https://raw.githubusercontent.com/217heidai/adblockfilters/main/rules/adblockdns.txt"
|
||
|
||
# Debug /convert
|
||
# Włącz/wyłącz tryb debug (domyślnie false)
|
||
DEBUG_ENABLE=false
|
||
|
||
# Tajny klucz do debug (opcjonalny).
|
||
# Jeśli pusty: debug tylko z prywatnych adresów (10.x.x.x, 192.168.x.x itp.)
|
||
# Jeśli ustawiony: debug dostępny po podaniu nagłówka X-Debug-Key: <sekret>
|
||
DEBUG_KEY=supersekretnyklucz
|
||
|
||
# Limit zapytań debug per-IP (np. 5 per minute)
|
||
DEBUG_RATE_LIMIT="5 per minute"
|