Compare commits

...

10 Commits

Author SHA1 Message Date
Arya Kiran 844dba1b8d
librex quetre whoogle are now in pfct 2022-12-15 22:31:42 +05:30
Arya Kiran faa3b0ad9f
Merge branch 'master' of ssh://vern.cc:1813/vern/infra-cookbook 2022-12-15 19:55:41 +05:30
Arya Kiran 0c8619adc5
change repo name in README 2022-12-15 19:52:42 +05:30
Arya Kiran 8ed461a976
piped & libretrasnlate 2022-12-15 19:51:57 +05:30
Skylar "The Cobra" Widulski e5bbd20eb4
Remove inr.i2p section
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2022-12-14 21:05:51 -05:00
Arya Kiran eeaace5fc1
Merge branch 'master' of ssh://vern.cc:1813/vern/internal-docs 2022-12-14 21:15:57 +05:30
Arya Kiran 438fa3eee4
scribe 2022-12-14 21:15:35 +05:30
Skylar "The Cobra" Widulski c7d5849d08
Merge branch 'master' of http://git.vern.cc/vern/internal-docs 2022-12-14 10:42:41 -05:00
Skylar "The Cobra" Widulski 593d32b09c
ProxiTok and Beatbump
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2022-12-14 10:42:10 -05:00
Arya Kiran ef07b84305
librex 2022-12-14 21:11:31 +05:30
11 changed files with 34 additions and 12 deletions

View File

@ -1,2 +1,2 @@
# Internal Documentation - ~vern
# Infrastructure Cookbook - ~vern
This repo contains documentation for updating, using and fixing ~vern services.

5
frontends/beatbump.txt Normal file
View File

@ -0,0 +1,5 @@
1) cd /opt/beatbump
2) stash docker-compose.yml in a different directory
3) git pull
4) diff docker-compose.yml and the old docker-compose.yml and make any necessary changes
5) docker-compose down; docker-compose up -d

View File

@ -0,0 +1,4 @@
1) su into libretranslate user, cd into libretranslate
2) git pull
3) pip install -e .
4) go back to tilserv root user; restart libretranslate service

2
frontends/librex.txt Normal file
View File

@ -0,0 +1,2 @@
1) cd /var/www/librex; git pull
2) Check if there are any changes to config.php.example, if so diff it with config.php and add entries where necessary

View File

@ -1,4 +1,4 @@
Beatbump
Beatbump [X]
BiblioReads [X]
BreezeWiki [X]
Dumb [X]
@ -9,15 +9,15 @@ LibMedium [X]
Librarian [X]
Libreddit [X]
LibremDB [X]
LibreTranslate
LibreX
LibreTranslate [X]
LibreX [X]
Nitter [X]
Piped
ProxiTok
Piped [X]
ProxiTok [X]
Quetre [X]
Rimgo [X]
RSS-Bridge
Scribe
Scribe [X]
SearXNG [X]
SimpleAmazon [X]
SimpleerTube [X]

1
frontends/piped.txt Normal file
View File

@ -0,0 +1 @@
1) docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --run-once piped-frontend piped-backend ytproxy varnish nginx caddy postgres watchtower

5
frontends/proxitok.txt Normal file
View File

@ -0,0 +1,5 @@
1) cd /opt/docker/proxitok
2) store docker-compose.yml in a different directory
3) git pull
4) diff the old docker-compose.yml and the new docker-compose.yml and make any necessary changes
5) docker-compose down; docker-compose up -d

View File

@ -1,5 +1,5 @@
1) ssh 192.168.122.53 (RLVM) from tilserv, su - quetre, cd into quetre dir
1) attach to PFCT from tilserv, su - quetre, cd into quetre dir
2) git pull
3) pnpm install
4) if .env.example had updates, diff it with .env and add new entries where necessary.
4) go back to RLVM root user, systemctl restart quetre.
4) go back to PFCT root user, systemctl restart quetre.

6
frontends/scribe.txt Normal file
View File

@ -0,0 +1,6 @@
1) Attach to PFCT from tilserv, su - medium, cd into scribe dir
2) git pull
3) NODE_OPTIONS=--openssl-legacy-provider yarn install --no-progress --frozen-lockfile && yarn prod
4) shards install --production
5) crystal build --static src/start_server.cr && crystal build --static tasks.cr -o run_task
6) go back to PFCT root user, systemctl restart scribe.

View File

@ -1,6 +1,6 @@
1) ssh 192.168.122.53 (RLVM) from tilserv, su into whoogle user, cd into whoogle dir
1) attach to pfct from tilserv, su into whoogle user, cd into whoogle dir
2) git pull
3) check if there are any changes to whoogle.template.env; if so then diff it with whoogle.env and add the new vars where necessary
4) . ./venv/bin/activate
5) pip install -r requirements.txt
6) go back to RLVM root user; restart whoogle service
6) go back to PFCT root user; restart whoogle service

View File

@ -6,5 +6,4 @@ port is the port you chose above, e.g. 11040. two services may not have the same
type is optional, only needed if it isn't an http tunnel, it will be "server" for generic TCP tunnels (most non-http), and "udpserver" for UDP tunnels (mumble and minetest use this).
host is the address to listen on, will usually be 127.0.0.1 if the service is on the tildeserver (most of the time), or 10.7.0.1 if it's located on the VPS (among-sus used to be). inport is the port to listen on. by default it's 80, meaning web services won't need this option. but for non-http services (e.g. SSH, Gemini) it is required to be inputted (e.g. 22, 1965).
Nginx will listen on the `port` value, not the `inport` value, so make the `listen` directive must have the same port as the `port` you used earlier. (you get it).
for inr.i2p, use the short form domain (e.g. lr.vern.i2p, git.vern.i2p). the base 64 address can be found with `i2pb64 service_name` (yes, the same service_name as before). the description must start with "~vern (vern.i2p)" and be something along the lines of "~vern (vern.i2p) Libreddit instance" or similar. Since it's a subdomain, it'll ask you to create a file. there is already one there, just `mv` it to the new name they provided (or `rm` it and `touch` the new one, i don't care).
Address helper is http://whatever.vern.i2p/?i2paddresshelper=$(i2pb64 whatever)