Files
nitter-status/.env.example
T
2025-03-25 00:51:51 +01:00

56 lines
2.0 KiB
Bash

# database connection URI
DATABASE_URL="sqlite:./sqlite.db?mode=rwc"
# listen port
PORT=3645
# URL for nitter instances
NITTER_INSTANCELIST="https://github.com/zedeus/nitter/wiki/Instances"
# relevant for CORS
SITE_URL="http://localhost"
# seconds between instance ping checks
INSTANCE_PING_INTERVAL_S=900
# interval for fetching the instances from the wiki
INSTANCE_LIST_INTERVAL_S=900
# path used for checking account availability
PROFILE_PATH="/jack/with_replies"
# path used for checking RSS availability
RSS_PATH="/jack/rss"
# about page
ABOUT_PATH="/about"
# profile name to find during a health check
PROFILE_NAME='@jack'
# minimum amount of posts to find during a health check
PROFILE_POSTS_MIN=5
# regex content to search for to verify RSS availability
RSS_CONTENT='<rss xmlns\:atom'
# additional instances to always include
ADDITIONAL_HOSTS="https://nitter.net"
# country for additional instances
ADDITIONAL_HOSTS_COUNTRY="🇳🇱"
# Referrer to use for requests
REFERER="https://localhost"
# Ping AVG period in hours
PING_RANGE_H="3"
# don't emit errors when re-checking offline hosts
AUTO_MUTE=true
# branch to use for fetching the latest nitter commit
ORIGIN_SOURCE_GIT_BRANCH="master"
# URL to use for fetching the latest nitter commit
ORIGIN_SOURCE_GIT_URL="https://github.com/zedeus/nitter.git"
# session lifetime for host logins
SESSION_TTL_SECONDS="2592000"
# admin instance domains
ADMIN_DOMAINS="example.com,foo.net"
# additional admin key that can be used for bootstrapping
ADMIN_KEYS="example.com=8fa16f1bd8e8a7292f7d16dbac001d95e46dc0ad3c0691f5ae30425e5791c8e9"
# token name used for logging in - has to be a valid DNS TXT key
LOGIN_TOKEN_NAME="localhost"
# completely disable any health checks - debugging only
DISABLE_HEALTH_CHECKS=false
# interval in seconds to cleanup old data like errors stored
CLEANUP_INTERVAL_S=86400
# amount of errors to keep per host
ERROR_RETENTION_PER_HOST=100
# session database URI
SESSION_DB_URI="sqlite:./sessions.db?mode=rwc"
# interval in seconds for gathering .health endpoint data
STATS_INTERVAL_S=900