From d50c54e23412febc1a550a15b574a02ff2907eed Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 26 Jun 2025 17:58:01 +0200 Subject: modularize caddyfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- Caddyfile | 9 +-------- Caddyfile.valid_paths | 8 ++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 Caddyfile.valid_paths diff --git a/Caddyfile b/Caddyfile index 4994c5b..9a64dff 100644 --- a/Caddyfile +++ b/Caddyfile @@ -19,14 +19,7 @@ http:// { } @valid_paths { - path / - path /~* - path /humans.txt - path /index.html - path /robots.txt - path /links/* - path /media/* - path /site/* + import Caddyfile.valid_paths } handle @valid_paths { root . diff --git a/Caddyfile.valid_paths b/Caddyfile.valid_paths new file mode 100644 index 0000000..06ddd02 --- /dev/null +++ b/Caddyfile.valid_paths @@ -0,0 +1,8 @@ +path / +path /~* +path /humans.txt +path /index.html +path /robots.txt +path /links/* +path /media/* +path /site/* -- cgit 1.4.1