From 68a47ced6660f8b034a45f450e6504d734b3d180 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sat, 12 Apr 2025 14:59:06 +0200 Subject: [PATCH] Refactor --- README.md | 4 +++- install.sh | 10 +--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 7844505..29a7664 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,9 @@ - Put `wg0.conf` in the root directory 3. Set up nameservers (records pointing to companion) and wait until it's live 4. `./install.sh` -5. **Schedule `reset.sh`**. This rotates your IP, updates containers, and it's generally a good practice to auto restart. \ +5. The companion should be accessible at your domain with a self-signed cert. \ + To get a real one do`./issue_cert.sh` +6. **Schedule `reset.sh`**. This rotates your IP, updates containers, and it's generally a good practice to auto restart. \ This restarts every hour:00. You can change it, if you want to. / If you have multiple companions, you should make them restart at different times. ``` diff --git a/install.sh b/install.sh index 80194dc..5f67f8e 100755 --- a/install.sh +++ b/install.sh @@ -15,21 +15,13 @@ fi ./scripts/update_config.sh -echo "Issuing certificate..." - docker compose up -d acme -docker compose exec nginx mkdir /var/www/html/$DOMAIN +docker compose exec acme mkdir /var/www/html/$DOMAIN docker compose exec acme mkdir /etc/ssl/$DOMAIN docker compose exec acme ln -s /etc/nginx/snakeoil.key /etc/ssl/$DOMAIN/key.pem docker compose exec acme ln -s /etc/nginx/snakeoil.pem /etc/ssl/$DOMAIN/fullchain.pem -docker compose up -d nginx - -./scripts/issue_cert.sh - docker compose down -echo "Setup done" - ./reset.sh