Skip to content

Instantly share code, notes, and snippets.

@dcode

dcode/Caddyfile Secret

Created June 6, 2019 02:31
Show Gist options
  • Save dcode/5b013cfc32e7482e4b6a8061203aa99d to your computer and use it in GitHub Desktop.
Save dcode/5b013cfc32e7482e4b6a8061203aa99d to your computer and use it in GitHub Desktop.
0.0.0.0 {
redir /app/static /app/static/
proxy / kibana:5601 {
except /app/static
except /index.html
}
log stdout
errors stdout
root /srv
}
0.0.0.0/app/static/ {
header / {
X-Requested-URI {uri}
X-Requested-Path {path}
X-Requested-Dir {dir}
X-Requested-File {file}
}
reauth {
path /
upstream url=http://kibana:5601/app/kibana,cookies=true,follow=true,match=login
failure redirect target=/login?next={uri}
}
root /srv
log stdout
errors stdout
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment