In this short guide, I wanted to document the few steps needed to have nitter running with docker-compose behind nginx.
1. Clone the repo
git clone --depth 1 https://github.com/zedeus/nitter.git
2. Configure nitter
nitter.conf file in the root of the repo, by copying the example conf:
cp nitter.example.conf nitter.conf
nitter.conf file, change the
Optionally, adapt the other settings, but for a bare setup, that’s the only change needed.
3. docker-compose setup
Since nitter is running behind nginx, thus a proxy, you can leave the exposed ports in
docker-compose.yml as they are.
Alternatively, if you want to expose nitter under a different port than 8080, you can do so by changing the exposed ports like this:
docker-compose up -d from the project directory to start nitter.
4. nginx setup
sudo vim /etc/nginx/sites-available/nitter
Add the following content to that file, just replacing the
Now create a symbolic link to make the nginx configuration available:
sudo ln -s /etc/nginx/sites-available/nitter /etc/nginx/sites-enabled/nitter
Test the nginx setup with
sudo nginx -t
And reload the nginx service with
sudo service reload nginx
5. Configure your DNS
Update your DNS records to point with an
A record to your server’s IP mapping it to the configured domain.