tee $HOME/nitter/nitter.conf << EOF[Server]address = "127.0.0.1"port = 1234https = false # disable to enable cookies when not using httpshttpMaxConnections = 100staticDir = "./public"title = "nitter"hostname = "nitter.anonworld.us"[Cache]listMinutes = 240 # how long to cache list info (not the tweets, so keep it high)rssMinutes = 10 # how long to cache rss queriesredisHost = "localhost" # Change to "nitter-redis" if using docker-composeredisPort = 6379redisPassword = ""redisConnections = 20 # connection pool sizeredisMaxConnections = 30[Config]enableRSS = true # set this to false to disable RSS feeds# Change default preferences here, see src/prefs_impl.nim for a complete list[Preferences]theme = "Nitter"replaceTwitter = "nitter.net"replaceYouTube = "piped.kavin.rocks"replaceReddit = "teddit.net"replaceInstagram = ""proxyVideos = truehlsPlayback = falseinfiniteScroll = falseEOF
sudo tee /etc/systemd/system/nitter.service << EOF[Unit]Description=Nitter (An alternative Twitter front-end)After=syslog.targetAfter=network.target[Service]Type=simple# set user and groupUser=nitterGroup=nitter# configure locationWorkingDirectory=/home/nitter/nitterExecStart=/home/nitter/nitter/nitterRestart=alwaysRestartSec=15[Install]WantedBy=multi-user.targetEOF