1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-10-10 18:01:22 +02:00

nitter: added nitter as twitter alternative

This commit is contained in:
TiynGER
2021-05-04 21:03:41 +02:00
parent 8afd6b3f3c
commit fe2ecb1d9c
3 changed files with 78 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
# zedeus - nitter
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.
| Volume-Name | Container mount | Description |
| ----------- | --------------- | ------------------------- |
| `nitter` | `/data` | storage for all of nitter |
## Ports
Set the following ports in the `ports:` section.
| Container Port | Recommended outside port | Protocol | Description |
| -------------- | ------------------------ | -------- | ----------- |
| `8080` | `8080` | TCP | WebUI |
## Rebuild
```shell
#!/bin/sh
docker stop nitter
docker rm nitter
docker pull zedeus/nitter:latest
docker run --name nitter \
--restart unless-stopped \
-v <path to nitter conf folder>/nitter.conf:/src/nitter.conf \
-v nitter:/data \
-p 8080:8080 \
-d zedeus/nitter:latest
```