ft_chatons/core/caddy/config/Caddyfile
2026-02-21 17:53:45 +01:00

25 lines
443 B
Caddyfile

outils.localhost {
local_certs
header X-Chatons "miaou"
respond /healthcheck "OK"
#handle_path or handle are the same except you need to prefix things instead of already having it uri strip_prefix /prefix
handle_path /hello/* {
respond "Hello {path.0}!"
close
}
handle /date {
respond "{http.date} {http.time}"
close
}
handle /ip {
respond {{.ClientIP}}
}
handle_path /b64/encode {
}
handle_path /b64/decode {
}
}