From c3971f8e34cdee861e6ca3d5a16f9602e2ad77b0 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Tue, 11 Jan 2022 10:25:39 +0100 Subject: [PATCH] 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 + } +}