this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

knot ssh reverse proxy + better git stuff + notifications

+37 -8
+8 -8
commit.sh
··· 6 6 echo "---" 7 7 echo 8 8 9 - # saves current state of fs 10 - git stash 11 - 12 9 # pull latest version 13 - git pull 14 - git submodule update 10 + git fetch --all 11 + git reset --hard origin/main 12 + 13 + curl -d "name=vps%20git%20updated&body=fetched%20latest%20git%20commit%20for%20vielle.dev/vps-config&key=vps/commit/git" http://compuper:6500/notify 14 + 15 15 16 16 # restart/rebuild all containers 17 17 docker compose build --no-cache ··· 22 22 # clear out dockerfiles to stop my drive exploding 23 23 docker system prune -af 24 24 25 - # return prev state of fs 26 - git stash pop 27 - exit 0 25 + curl -d "name=vps%20ready&body=finished%20building%20docker&key=vps/commit/build" http://compuper:6500/notify 26 + 27 + exit 0
+10
compose.yaml
··· 31 31 - prs 32 32 - landing 33 33 34 + # nginx for ssh reverse proxy 35 + # because caddy hates woke 36 + nginx: 37 + image: nginx 38 + restart: unless-stopped 39 + ports: 40 + - 22001:2222 41 + volumes: 42 + - ./nginx.conf:/etc/nginx/nginx.conf 43 + 34 44 volumes: 35 45 caddy_data: 36 46 caddy_config:
+19
nginx.conf
··· 1 + user nginx; 2 + worker_processes auto; 3 + error_log /var/log/nginx/error.log notice; 4 + pid /run/nginx.pid; 5 + 6 + events { 7 + worker_connections 1024; 8 + } 9 + 10 + stream { 11 + upstream knot-ssh { 12 + server pi:2222; 13 + } 14 + 15 + server { 16 + listen 2222; 17 + proxy_pass knot-ssh; 18 + } 19 + }