Finishing touches
This commit is contained in:
parent
8da8693dfe
commit
5254e9bd6a
4 changed files with 7 additions and 6 deletions
|
|
@ -3,13 +3,13 @@
|
||||||
- in `docker-compose.yml`, uncomment everything under `gluetun:` and the two lines `network_mode` and `depends_on`
|
- in `docker-compose.yml`, uncomment everything under `gluetun:` and the two lines `network_mode` and `depends_on`
|
||||||
- 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. `./scripts/install.sh`
|
||||||
5. The companion should be accessible at your domain with a self-signed cert. \
|
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. \
|
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.
|
||||||
```
|
```
|
||||||
@reboot sleep 30s && cd /opt/invidious-companion/reset.sh
|
@reboot sleep 30s && cd /opt/invidious-companion/scripts/reset.sh
|
||||||
0 * * * * cd /opt/invidious-companion/reset.sh
|
0 * * * * cd /opt/invidious-companion/scripts/reset.sh
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")/.."
|
||||||
. .env
|
. .env
|
||||||
|
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
|
|
@ -5,6 +5,7 @@ cd "$(dirname "$0")/.."
|
||||||
CERT_DIR=/etc/ssl/$DOMAIN
|
CERT_DIR=/etc/ssl/$DOMAIN
|
||||||
|
|
||||||
docker compose exec acme --issue --server letsencrypt -d $DOMAIN --webroot /var/www/html/$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 acme --install-cert -d $DOMAIN --key-file $CERT_DIR/key.pem --fullchain-file $CERT_DIR/fullchain.pem
|
||||||
docker compose exec nginx nginx -s reload
|
docker compose exec nginx nginx -s reload
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")/.."
|
||||||
. .env
|
. .env
|
||||||
|
|
||||||
./scripts/update_config.sh
|
./scripts/update_config.sh
|
||||||
Reference in a new issue