# Telegram files log level, ALL < FINEST < FINER < FINE < CONFIG < INFO < WARNING < SEVERE < OFF LOG_LEVEL=INFO APP_ENV=prod # The root directory of the application APP_ROOT=/app/data # HTTP security. First-administrator bootstrap is accepted only from loopback # or private LAN source addresses. HTTP_HOST=0.0.0.0 # Keep true when serving through HTTPS. HTTP_SECURE_COOKIES=false HTTP_ALLOWED_ORIGINS=https://files.example.com HTTP_BODY_LIMIT_BYTES=1048576 AUTH_LOGIN_ATTEMPTS_PER_MINUTE=10 FILE_READS_PER_MINUTE=120 # Database connection information, default is sqlite on $APP_ROOT/data.db, you can use mysql or postgresql. #DB_TYPE=postgres/mysql #DB_HOST=localhost #DB_PORT=5432 #DB_USER=postgres #DB_PASSWORD=postgres #DB_NAME=telegram-files # PUID and PGID are the user id and group id of the user who owns the files in the mounted volume. # PUID: 1000 # PGID: 1000 # The port on which the nginx listens for incoming connections, default is 80 # NGINX_PORT: 80 # only use in test #TDLIB_PATH= #JAVA_HOME= # Shared-node module. It is inert unless explicitly enabled. SHARE_ENABLED=false # Required when SHARE_ENABLED=true; production accepts HTTPS only. #SEED_PLATFORM_URL=https://tele-seed.com # Base64-encoded 32-byte key supplied by the deployment secret manager. Use `openssl rand -base64 32` to generate a new key. #SECRET_STORE_MASTER_KEY= # Defaults to $APP_ROOT/shared and must not overlap $APP_ROOT/account. #SHARED_ROOT=/app/data/shared SHARE_CONCURRENCY=2 SHARE_REQUEST_TIMEOUT_SECONDS=30 SHARE_MAX_RETRIES=5 SHARE_HEARTBEAT_INTERVAL_SECONDS=30 # Optional during local development. When set, qBittorrent 5.1.2+ / WebAPI 2.11.4+ is required. #QBITTORRENT_URL=http://127.0.0.1:8080 #QBITTORRENT_USERNAME=telegram-files #QBITTORRENT_PASSWORD=replace-with-qbittorrent-password # Path to the same SHARED_ROOT as seen by qBittorrent. For a local process it is normally identical. #QBITTORRENT_SHARED_ROOT=/absolute/path/to/shared QBITTORRENT_REQUEST_TIMEOUT_SECONDS=30 QBITTORRENT_OPERATION_TIMEOUT_SECONDS=86400 QBITTORRENT_POLL_INTERVAL_MILLIS=1000 # qBittorrent peer port (not its WebUI port); #PEER_LISTEN_PORT=51413 #PEER_MAPPING_METHOD=NONE #PEER_IPV4_REACHABLE=false #PEER_IPV6_REACHABLE=false TELEGRAM_API_ID= TELEGRAM_API_HASH= # Value 0 corresponds to fatal errors, value 1 corresponds to errors, value 2 corresponds to warnings and debug warnings, value 3 corresponds to informational, value 4 corresponds to debug, value 5 corresponds to verbose debug, value greater than 5 and up to 1023 can be used to enable even more logging. TELEGRAM_LOG_LEVEL=0 # OpenAI configuration #OPENAI_API_KEY= # default model is gpt-4o-mini #OPENAI_MODEL= # default https://api.openai.com/v1 #OPENAI_BASE_URL=