nitter.conf 1.3 KB

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