From c3971f8e34cdee861e6ca3d5a16f9602e2ad77b0 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Tue, 11 Jan 2022 10:25:39 +0100 Subject: [PATCH 1/2] test formatted Caddyfile --- Caddyfile | 28 ++++++++++++++++------------ Caddyfile.back | 16 ++++++++++++++++ 2 files changed, 32 insertions(+), 12 deletions(-) create mode 100644 Caddyfile.back diff --git a/Caddyfile b/Caddyfile index a6a2821..858c57d 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,12 +1,16 @@ -:8080 { - root * /usr/share/caddy - file_server - encode gzip zstd - handle_errors { - @404 { - expression {http.error.status_code} == 404 - } - rewrite @404 /404.html - file_server - } -} +{ + auto_https off +} + +:8080 { + root * /usr/share/caddy + file_server + encode gzip zstd + handle_errors { + @404 { + expression {http.error.status_code} == 404 + } + rewrite @404 /404.html + file_server + } +} diff --git a/Caddyfile.back b/Caddyfile.back new file mode 100644 index 0000000..2f346c4 --- /dev/null +++ b/Caddyfile.back @@ -0,0 +1,16 @@ +{ + auto_https off +} + +:8080 { + root * /usr/share/caddy + file_server + encode gzip zstd + handle_errors { + @404 { + expression {http.error.status_code} == 404 + } + rewrite @404 /404.html + file_server + } +} -- 2.45.1 From d5309f3ad46b9d09707f35ddc2de0a43bac1f0b9 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Tue, 11 Jan 2022 10:32:47 +0100 Subject: [PATCH 2/2] add debug out --- Caddyfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Caddyfile b/Caddyfile index 858c57d..cb73061 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,4 +1,6 @@ { + debug + admin off auto_https off } -- 2.45.1