mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 13:45:42 -04:00
docs(readme): modify traefik instructions
This commit is contained in:
28
README.md
28
README.md
@@ -695,7 +695,7 @@ mkdir -p /home/docker/tvapp2
|
|||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
Then create a new `docker-compose.yml` file and add the following:
|
Then create a new `docker-compose.yml`:
|
||||||
|
|
||||||
```shell ignore
|
```shell ignore
|
||||||
sudo nano /home/docker/tvapp2/docker-compose.yml
|
sudo nano /home/docker/tvapp2/docker-compose.yml
|
||||||
@@ -712,6 +712,7 @@ services:
|
|||||||
image: ghcr.io/thebinaryninja/tvapp2:latest # Image: Github
|
image: ghcr.io/thebinaryninja/tvapp2:latest # Image: Github
|
||||||
# image: thebinaryninja/tvapp2:latest # Image: Dockerhub
|
# image: thebinaryninja/tvapp2:latest # Image: Dockerhub
|
||||||
# image: git.binaryninja.net/binaryninja/tvapp2:latest # Image: Gitea
|
# image: git.binaryninja.net/binaryninja/tvapp2:latest # Image: Gitea
|
||||||
|
hostname: tvapp2
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
@@ -811,6 +812,7 @@ services:
|
|||||||
image: ghcr.io/thebinaryninja/tvapp2:latest # Image: Github
|
image: ghcr.io/thebinaryninja/tvapp2:latest # Image: Github
|
||||||
# image: thebinaryninja/tvapp2:latest # Image: Dockerhub
|
# image: thebinaryninja/tvapp2:latest # Image: Dockerhub
|
||||||
# image: git.binaryninja.net/binaryninja/tvapp2:latest # Image: Gitea
|
# image: git.binaryninja.net/binaryninja/tvapp2:latest # Image: Gitea
|
||||||
|
hostname: tvapp2
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
@@ -940,6 +942,7 @@ services:
|
|||||||
traefik:
|
traefik:
|
||||||
container_name: traefik
|
container_name: traefik
|
||||||
image: traefik:latest
|
image: traefik:latest
|
||||||
|
hostname: tvapp2
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
@@ -1016,9 +1019,26 @@ CF_API_KEY=Your-Cloudflare-API-Key
|
|||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
Save the `.env` file and exit. For these environment variables to be detected by Traefik, you must give your Traefik container a restart. Until you restart Traefik, it will not be able to generate your new SSL certificates.
|
Save the `.env` file and exit. For these environment variables to be detected by Traefik, you must give your Traefik container a restart. Until you restart Traefik, it will not be able to generate your new SSL certificates. Before doing the restart, we need to create one more folder and file; this is where Traefik will store your SSL certificate generated by Cloudflare.
|
||||||
|
|
||||||
You can wait and restart in a moment after you finish editing the `static.yml` file, as there are more items to add below.
|
<br />
|
||||||
|
|
||||||
|
Run the commands below, which will do the following:
|
||||||
|
|
||||||
|
- Create a new folder called `cloudflare`
|
||||||
|
- Create a new file named `acme.json`
|
||||||
|
- Set the permission for the `acme.json` file to `chmod 600`.
|
||||||
|
- If you do not do this step, Traefik will fail to start. You must change the permissions in order to protect the file.
|
||||||
|
|
||||||
|
```shell
|
||||||
|
mkdir -p /home/docker/traefik/cloudflare
|
||||||
|
touch /home/docker/traefik/cloudflare/acme.json
|
||||||
|
chmod 0600 /home/docker/traefik/cloudflare/acme.json
|
||||||
|
```
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
The `acme.json` file will not be populated with an SSL certificate until the next time you restart Traefik. You can wait and restart in a moment after you finish editing the `static.yml` file, as there are more items to add below.
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
@@ -1112,7 +1132,7 @@ entryPoints:
|
|||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
Save the files and then give Traefik and your TVApp2 container a restart. After the restart is complete; you should be able to access TVApp2 in your browser by going to
|
Remember to change `domain.lan` to your actual domain name. Then save the files and then give Traefik and your TVApp2 container a restart. After the restart is complete; you should be able to access TVApp2 in your browser by going to
|
||||||
|
|
||||||
```console
|
```console
|
||||||
https://tvapp2.domain.lan
|
https://tvapp2.domain.lan
|
||||||
|
|||||||
Reference in New Issue
Block a user