Improve Redis instructions and add note about logs

This commit is contained in:
Zed 2020-06-02 19:56:16 +02:00
parent 2930293833
commit 9dbd819313

View file

@ -81,10 +81,12 @@ $ mkdir ./tmp
``` ```
Set your hostname, port, HMAC key, https (must be correct for cookies), and Set your hostname, port, HMAC key, https (must be correct for cookies), and
Redis info in `nitter.conf`, run `redis-server --daemonize yes`, then run Nitter Redis info in `nitter.conf`. To run Redis, either run
by executing `./nitter`. You should run Nitter behind a reverse proxy such as `redis-server --daemonize yes`, or `systemctl enable --now redis` (or
[Nginx](https://github.com/zedeus/nitter/wiki/Nginx) or Apache for security redis-server depending on the distro). Run Nitter by executing `./nitter` or
reasons. using the systemd service below. You should run Nitter behind a reverse proxy
such as [Nginx](https://github.com/zedeus/nitter/wiki/Nginx) or Apache for
security reasons.
To build and run Nitter in Docker: To build and run Nitter in Docker:
```bash ```bash
@ -128,6 +130,12 @@ WantedBy=multi-user.target
Then enable and run the service: Then enable and run the service:
`systemctl enable --now nitter.service` `systemctl enable --now nitter.service`
Nitter currently prints some errors to stdout, and there is no real logging
implemented. If you're running Nitter with systemd, you can check stdout like
this: `journalctl -u nitter.service` (add `--follow` to see just the last 15
lines). If you're running the Docker image, you can do this:
`docker logs --follow *nitter conightytainer id*`
## Donating <a href="https://liberapay.com/zedeus/donate"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a> ## Donating <a href="https://liberapay.com/zedeus/donate"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a>
BTC: bc1qp7q4qz0fgfvftm5hwz3vy284nue6jedt44kxya \ BTC: bc1qp7q4qz0fgfvftm5hwz3vy284nue6jedt44kxya \