25 lines
443 B
Caddyfile
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 {
|
|
|
|
}
|
|
} |