diff --git a/README.md b/README.md index 24df9672..94e92233 100644 --- a/README.md +++ b/README.md @@ -695,7 +695,7 @@ mkdir -p /home/docker/tvapp2
-Then create a new `docker-compose.yml` file and add the following: +Then create a new `docker-compose.yml`: ```shell ignore sudo nano /home/docker/tvapp2/docker-compose.yml @@ -712,6 +712,7 @@ services: image: ghcr.io/thebinaryninja/tvapp2:latest # Image: Github # image: thebinaryninja/tvapp2:latest # Image: Dockerhub # image: git.binaryninja.net/binaryninja/tvapp2:latest # Image: Gitea + hostname: tvapp2 restart: unless-stopped volumes: - /etc/timezone:/etc/timezone:ro @@ -811,6 +812,7 @@ services: image: ghcr.io/thebinaryninja/tvapp2:latest # Image: Github # image: thebinaryninja/tvapp2:latest # Image: Dockerhub # image: git.binaryninja.net/binaryninja/tvapp2:latest # Image: Gitea + hostname: tvapp2 restart: unless-stopped volumes: - /etc/timezone:/etc/timezone:ro @@ -940,6 +942,7 @@ services: traefik: container_name: traefik image: traefik:latest + hostname: tvapp2 restart: unless-stopped volumes: - /var/run/docker.sock:/var/run/docker.sock:ro @@ -1016,9 +1019,26 @@ CF_API_KEY=Your-Cloudflare-API-Key
-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. +
+ +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 +``` + +
+ +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.
@@ -1112,7 +1132,7 @@ entryPoints:
-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 https://tvapp2.domain.lan