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