From 2c830905d1c0bde4673dc04baa9e8ec46a835315 Mon Sep 17 00:00:00 2001 From: Asmir A Date: Wed, 15 Nov 2023 13:21:52 +0100 Subject: [PATCH] add Caddyfile for testing --- Caddyfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Caddyfile diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..51d6e5e --- /dev/null +++ b/Caddyfile @@ -0,0 +1,18 @@ +{ + auto_https off +} + +:8080 { + root * ./result/public + encode gzip + file_server + + # redirect to your custom 404 page + handle_errors { + @404 { + expression {http.error.status_code} == 404 + } + rewrite @404 /404.html + file_server + } +}