nitter.example.conf 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [Server]
  2. address = "0.0.0.0"
  3. port = 8080
  4. https = false # disable to enable cookies when not using https
  5. httpMaxConnections = 100
  6. staticDir = "./public"
  7. title = "nitter"
  8. hostname = "nitter.net"
  9. [Cache]
  10. listMinutes = 240 # how long to cache list info (not the tweets, so keep it high)
  11. rssMinutes = 10 # how long to cache rss queries
  12. redisHost = "localhost" # Change to "redis" if using docker-compose
  13. redisPort = 6379
  14. redisPassword = ""
  15. redisConnections = 20 # connection pool size
  16. redisMaxConnections = 30
  17. # max, new connections are opened when none are available, but if the pool size
  18. # goes above this, they're closed when released. don't worry about this unless
  19. # you receive tons of requests per second
  20. [Config]
  21. hmacKey = "secretkey" # random key for cryptographic signing of video urls
  22. base64Media = false # use base64 encoding for proxied media urls
  23. enableRSS = true # set this to false to disable RSS feeds
  24. proxy = "" # proxy type http/https
  25. proxyAuth = ""
  26. tokenCount = 10
  27. # minimum amount of usable tokens. tokens are used to authorize API requests,
  28. # but they expire after ~1 hour, and have a limit of 187 requests.
  29. # the limit gets reset every 15 minutes, and the pool is filled up so there's
  30. # always at least $tokenCount usable tokens. again, only increase this if
  31. # you receive major bursts all the time
  32. # Change default preferences here, see src/prefs_impl.nim for a complete list
  33. [Preferences]
  34. theme = "Nitter"
  35. replaceTwitter = "nitter.net"
  36. replaceYouTube = "piped.kavin.rocks"
  37. replaceReddit = "teddit.net"
  38. replaceInstagram = ""
  39. proxyVideos = true
  40. hlsPlayback = false
  41. infiniteScroll = false