This commit is contained in:
Minecon724 2025-04-12 14:59:06 +02:00
commit 68a47ced66
Signed by: Minecon724
GPG key ID: A02E6E67AB961189
2 changed files with 4 additions and 10 deletions

View file

@ -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.
```

View file

@ -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