nitter.example.conf 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [Server]
  2. hostname = "nitter.net" # for generating links, change this to your own domain/ip
  3. title = "nitter"
  4. address = "0.0.0.0"
  5. port = 8080
  6. https = false # disable to enable cookies when not using https
  7. httpMaxConnections = 100
  8. staticDir = "./public"
  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 "nitter-redis" if using docker-compose
  13. redisPort = 6379
  14. redisPassword = ""
  15. redisConnections = 20 # minimum open connections in pool
  16. redisMaxConnections = 30
  17. # 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" # CHANGE THIS to a unique random value (e.g. `openssl rand -hex 32`); signs media urls
  22. base64Media = false # use base64 encoding for proxied media urls
  23. enableRSS = true # master switch, set to false to disable all RSS feeds
  24. enableRSSUserTweets = true # /@user/rss
  25. enableRSSUserReplies = true # /@user/with_replies/rss
  26. enableRSSUserMedia = true # /@user/media/rss
  27. enableRSSUserArticles = true # /@user/articles/rss
  28. enableRSSSearch = true # /search/rss and /@user/search/rss
  29. enableRSSList = true # list RSS feeds
  30. enableDebug = false # enable request logs and debug endpoints (/.sessions)
  31. proxy = "" # http/https url, SOCKS proxies are not supported
  32. proxyAuth = ""
  33. apiProxy = "" # nitter-proxy host, e.g. localhost:7000
  34. disableTid = false # enable this if cookie-based auth is failing
  35. maxConcurrentReqs = 2 # max requests at a time per session to avoid race conditions
  36. maxRetries = 1 # max number of retries on rate limit errors
  37. retryDelayMs = 150 # delay in ms between retries
  38. # Change default preferences here, see src/prefs_impl.nim for a complete list
  39. [Preferences]
  40. theme = "Nitter"
  41. replaceTwitter = "nitter.net"
  42. replaceYouTube = "piped.video"
  43. replaceReddit = "teddit.net"
  44. proxyVideos = true
  45. hlsPlayback = false
  46. infiniteScroll = false