Finishing touches

This commit is contained in:
Minecon724 2025-04-12 15:06:37 +02:00
commit 5254e9bd6a
Signed by: Minecon724
GPG key ID: A02E6E67AB961189
4 changed files with 7 additions and 6 deletions

View file

@ -3,13 +3,13 @@
- in `docker-compose.yml`, uncomment everything under `gluetun:` and the two lines `network_mode` and `depends_on`
- Put `wg0.conf` in the root directory
3. Set up nameservers (records pointing to companion) and wait until it's live
4. `./install.sh`
4. `./scripts/install.sh`
5. The companion should be accessible at your domain with a self-signed cert. \
To get a real one do`./issue_cert.sh`
To get a real one do `./scripts/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.
```
@reboot sleep 30s && cd /opt/invidious-companion/reset.sh
0 * * * * cd /opt/invidious-companion/reset.sh
@reboot sleep 30s && cd /opt/invidious-companion/scripts/reset.sh
0 * * * * cd /opt/invidious-companion/scripts/reset.sh
```

View file

@ -1,5 +1,5 @@
#!/bin/bash
cd "$(dirname "$0")"
cd "$(dirname "$0")/.."
. .env
git submodule update --init

View file

@ -5,6 +5,7 @@ cd "$(dirname "$0")/.."
CERT_DIR=/etc/ssl/$DOMAIN
docker compose exec acme --issue --server letsencrypt -d $DOMAIN --webroot /var/www/html/$DOMAIN
docker compose exec acme rm $CERT_DIR/key.pem $CERT_DIR/fullchain.pem
docker compose exec acme --install-cert -d $DOMAIN --key-file $CERT_DIR/key.pem --fullchain-file $CERT_DIR/fullchain.pem
docker compose exec nginx nginx -s reload

View file

@ -1,5 +1,5 @@
#!/bin/bash
cd "$(dirname "$0")"
cd "$(dirname "$0")/.."
. .env
./scripts/update_config.sh