|
|
|
@ -2,34 +2,6 @@
|
|
|
|
|
|
|
|
|
|
The official container and documentation was made by [zedeus](https://github.com/zedeus/nitter).
|
|
|
|
|
|
|
|
|
|
## Config file
|
|
|
|
|
|
|
|
|
|
Create a configuration file `nitter.conf` in a folder of your choice.
|
|
|
|
|
|
|
|
|
|
```txt
|
|
|
|
|
[Unit]
|
|
|
|
|
Description=Nitter (An alternative Twitter front-end)
|
|
|
|
|
After=syslog.target
|
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=simple
|
|
|
|
|
|
|
|
|
|
# set user and group
|
|
|
|
|
User=nitter
|
|
|
|
|
Group=nitter
|
|
|
|
|
|
|
|
|
|
# configure
|
|
|
|
|
WorkingDirectory=/home/nitter/nitter
|
|
|
|
|
ExecStart=/home/nitter/nitter/nitter
|
|
|
|
|
|
|
|
|
|
Restart=always
|
|
|
|
|
RestartSec=15
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Volumes
|
|
|
|
|
|
|
|
|
|
Set the following volumes with the -v tag.
|
|
|
|
@ -46,7 +18,7 @@ Set the following ports with the -p tag.
|
|
|
|
|
| -------------- | ------------------------ | -------- | ----------- |
|
|
|
|
|
| `8080` | `8080` | TCP | WebUI |
|
|
|
|
|
|
|
|
|
|
## Rebuild
|
|
|
|
|
## rebuild.sh
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
#!/bin/sh
|
|
|
|
@ -60,3 +32,29 @@ docker run --name nitter \
|
|
|
|
|
-p 8080:8080 \
|
|
|
|
|
-d zedeus/nitter:latest
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## nitter.conf
|
|
|
|
|
|
|
|
|
|
```txt
|
|
|
|
|
[Unit]
|
|
|
|
|
Description=Nitter (An alternative Twitter front-end)
|
|
|
|
|
After=syslog.target
|
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=simple
|
|
|
|
|
|
|
|
|
|
# set user and group
|
|
|
|
|
User=nitter
|
|
|
|
|
Group=nitter
|
|
|
|
|
|
|
|
|
|
# configure
|
|
|
|
|
WorkingDirectory=/home/nitter/nitter
|
|
|
|
|
ExecStart=/home/nitter/nitter/nitter
|
|
|
|
|
|
|
|
|
|
Restart=always
|
|
|
|
|
RestartSec=15
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|
```
|
|
|
|
|