Skip to content

Instantly share code, notes, and snippets.

@vixus0
Last active March 8, 2023 16:41
Show Gist options
  • Save vixus0/73b0bbe1f68f9eaa743090af8bdc0f14 to your computer and use it in GitHub Desktop.
Save vixus0/73b0bbe1f68f9eaa743090af8bdc0f14 to your computer and use it in GitHub Desktop.
Caddy Playground
{
auto_https off
}
:{$NOMAD_PORT_http:8080} {
log {
format console
level INFO
}
respond / "hello!"
respond /whoami "IP: {remote} {header.user-agent}"
respond * "oh noes" 400
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment