nitter.conf 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. directory = "./tmp"
  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"
  13. redisPort = 6379
  14. redisConnections = 20 # connection pool size
  15. redisMaxConnections = 30
  16. # max, new connections are opened when none are available, but if the pool size
  17. # goes above this, they're closed when released. don't worry about this unless
  18. # you receive tons of requests per second
  19. [Config]
  20. hmacKey = "secretkey" # random key for cryptographic signing of video urls
  21. base64Media = false # use base64 encoding for proxied media urls
  22. tokenCount = 10
  23. # minimum amount of usable tokens. tokens are used to authorize API requests,
  24. # but they expire after ~1 hour, and have a limit of 187 requests.
  25. # the limit gets reset every 15 minutes, and the pool is filled up so there's
  26. # always at least $tokenCount usable tokens. again, only increase this if
  27. # you receive major bursts all the time
  28. # Change default preferences here, see src/prefs_impl.nim for a complete list
  29. [Preferences]
  30. theme = "Nitter"
  31. replaceTwitter = "nitter.net"
  32. replaceYouTube = "invidio.us"
  33. replaceInstagram = ""
  34. proxyVideos = true
  35. hlsPlayback = false
  36. infiniteScroll = false