From b39c008f8eac358767d8dbd89d0ed1888771c70c Mon Sep 17 00:00:00 2001 From: DoTheEvo Date: Sat, 13 Aug 2022 13:37:52 +0200 Subject: [PATCH] update --- caddy_v2/readme.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/caddy_v2/readme.md b/caddy_v2/readme.md index 426b93e..a1ae28c 100644 --- a/caddy_v2/readme.md +++ b/caddy_v2/readme.md @@ -139,7 +139,7 @@ services: environment: - MY_DOMAIN volumes: - - ./Caddyfile:/etc/caddy/Caddyfile:ro + - ./Caddyfile:/etc/caddy/Caddyfile - ./data:/data - ./config:/config @@ -284,6 +284,12 @@ There's also other possible issues, like bad port forwarding towards docker host `docker exec -w /etc/caddy caddy caddy reload` reloads config if you made changes and want them to take effect. +*extra info2:*
+caddy can complain about formatting of the `Caddyfile`
+this executed on the host will let caddy overwrite the Caddyfile with +correct formatting +`docker exec -w /etc/caddy caddy caddy fmt -overwrite` + # Caddy more info and various configurations ##### Caddyfile structure: