Refactor
This commit is contained in:
parent
dfd1ca7358
commit
68a47ced66
2 changed files with 4 additions and 10 deletions
|
|
@ -4,7 +4,9 @@
|
||||||
- Put `wg0.conf` in the root directory
|
- Put `wg0.conf` in the root directory
|
||||||
3. Set up nameservers (records pointing to companion) and wait until it's live
|
3. Set up nameservers (records pointing to companion) and wait until it's live
|
||||||
4. `./install.sh`
|
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. /
|
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.
|
If you have multiple companions, you should make them restart at different times.
|
||||||
```
|
```
|
||||||
|
|
|
||||||
10
install.sh
10
install.sh
|
|
@ -15,21 +15,13 @@ fi
|
||||||
|
|
||||||
./scripts/update_config.sh
|
./scripts/update_config.sh
|
||||||
|
|
||||||
echo "Issuing certificate..."
|
|
||||||
|
|
||||||
docker compose up -d acme
|
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 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.key /etc/ssl/$DOMAIN/key.pem
|
||||||
docker compose exec acme ln -s /etc/nginx/snakeoil.pem /etc/ssl/$DOMAIN/fullchain.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
|
docker compose down
|
||||||
|
|
||||||
echo "Setup done"
|
|
||||||
|
|
||||||
./reset.sh
|
./reset.sh
|
||||||
|
|
|
||||||
Reference in a new issue