aboutsummaryrefslogtreecommitdiff
path: root/example/Caddyfile
diff options
context:
space:
mode:
authorBrian Picciano <me@mediocregopher.com>2024-07-05 17:32:26 +0200
committerBrian Picciano <me@mediocregopher.com>2024-07-05 17:32:26 +0200
commit1372a5b5bc46ef2e204d787c83a17a81ffbde756 (patch)
tree29a3550bd0721e2560b8b0623e18f91274d9c0fe /example/Caddyfile
parentb2abfb5ceaab998cb7df66e60ae6c8869c8c383b (diff)
Improvements to example/CaddyfileHEADmain
Diffstat (limited to 'example/Caddyfile')
-rw-r--r--example/Caddyfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/Caddyfile b/example/Caddyfile
index 05ad0ba..4a4879f 100644
--- a/example/Caddyfile
+++ b/example/Caddyfile
@@ -12,7 +12,7 @@ http://template.localhost {
# the directory is requested.
try_files {path} {path}/index.gmi
- @gmi path_regexp \.gmi$
+ @gmi path *.gmi
# Handle all requests for .gmi files specially.
route @gmi {
@@ -36,7 +36,7 @@ http://template.localhost {
# templates directive above. This body simply imports the template we
# actually want. Setting Content-Type is required because there's no
# actual file for Caddy to determine the value from.
- header Content-Type text/html
+ header Content-Type "text/html; charset=utf-8"
respond `{{ include "tpl/render_gemtext.html" }}`
}