Compare commits
6 Commits
ed1964a21e
...
0bbf642143
Author | SHA1 | Date |
---|---|---|
Urban Guacamole | 0bbf642143 | 2 years ago |
Urban Guacamole | e514583e25 | 2 years ago |
Urban Guacamole | fe8e18058b | 2 years ago |
Urban Guacamole | 0d4b9c979f | 2 years ago |
Urban Guacamole | 2abcb39b47 | 2 years ago |
Urban Guacamole | bc04c150ad | 2 years ago |
@ -1,4 +1,4 @@
|
||||
trackers = ["udp://tracker.coppersurfer.tk:6969", "udp://tracker.leechers-paradise.org:6969/announce", "udp://tracker.internetwarriors.net:1337/announce","udp://tracker.opentrackr.org:1337/announce","udp://tracker.cyberia.is:6969/announce","udp://9.rarbg.to:2920/announce"]
|
||||
trackers = ["udp://tracker.coppersurfer.tk:6969", "udp://tracker.leechers-paradise.org:6969/announce", "udp://tracker.opentrackr.org:1337/announce","udp://tracker.cyberia.is:6969/announce","udp://tracker.torrent.eu.org:451"]
|
||||
waitTime = "250ms"
|
||||
logInterval = "1h"
|
||||
|
@ -0,0 +1,51 @@
|
||||
|
||||
|
||||
# Run as root
|
||||
|
||||
Assumming Debian 11 Bullseye
|
||||
|
||||
```apt update
|
||||
apt upgrade
|
||||
apt install -y htop kitty-terminfo screenfetch postgresql-13 mosh nload
|
||||
apt install -y debian-keyring debian-archive-keyring apt-transport-https
|
||||
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | tee /etc/apt/trusted.gpg.d/caddy-stable.asc
|
||||
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list
|
||||
apt update
|
||||
apt install caddy
|
||||
|
||||
mkdir /www
|
||||
adduser nextgen
|
||||
```
|
||||
|
||||
### /etc/caddy/Caddyfile
|
||||
|
||||
```
|
||||
http://torrentparadise.ml, http://torrent-paradise.ml {
|
||||
reverse_proxy /api/* http://localhost:8000
|
||||
root * /www/torrent-paradise.ml/
|
||||
file_server
|
||||
}
|
||||
```
|
||||
|
||||
### /etc/postgresql/13/main/postgresql.conf
|
||||
|
||||
Use https://pgtune.leopard.in.ua/
|
||||
|
||||
Just get the optimal settings and paste them at the end of the file, they override the defaults.
|
||||
|
||||
### Set up nextgen user and database in Postgres
|
||||
|
||||
```
|
||||
postgres $ createuser -d nextgen
|
||||
nextgen $ createdb nextgen
|
||||
```
|
||||
|
||||
### Ship compiled static executables to server
|
||||
|
||||
You can either build it on the server or just ship the binaries to the server via scp. In the end, you need binaries in /home/nextgen and .service files in /etc/systemd/system/.
|
||||
|
||||
Might come in handy: a way to build go binaries truly statically (incl glibc) `CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' .`
|
||||
|
||||
### Ship contents of static/ to /www/torrent-paradise.ml
|
||||
|
||||
Use scp.
|
Loading…
Reference in New Issue