diff options
| author | Robert Günzler <r@gnzler.io> | 2025-06-26 17:58:01 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2025-06-26 17:58:08 +0200 |
| commit | d50c54e23412febc1a550a15b574a02ff2907eed (patch) | |
| tree | dfb5ff60bcf3b10d2e4224d698cea8e1da359fdc | |
| parent | 95bd166e9634bbe744e2635c206f750037516258 (diff) | |
| download | site-d50c54e23412febc1a550a15b574a02ff2907eed.tar.gz | |
modularize caddyfile
Signed-off-by: Robert Günzler <r@gnzler.io>
| -rw-r--r-- | Caddyfile | 9 | ||||
| -rw-r--r-- | Caddyfile.valid_paths | 8 |
2 files changed, 9 insertions, 8 deletions
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/* |