mealie/Caddyfile.dev
Hayden e34079673c
Docs/v0.5.0 second pass (#496)
* update docs

* use auto-gen routes

* dumb deps

* remove whitespace

* github action to build dev docs container

* no cache

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-06-11 21:57:59 -08:00

33 lines
No EOL
628 B
Text

{
admin off
}
# Add gzip compression to requests
(webconf) {
encode gzip
}
# Add forward headers to requests
(theheaders) {
header_up X-Forwarded-Ssl on
header_up Host {host}
header_up X-Real-IP {remote}
header_up X-Forwarded-For {remote}
header_up X-Forwarded-Port {server_port}
header_up X-Forwarded-Proto {scheme}
header_up X-Url-Scheme {scheme}
header_up X-Forwarded-Host {host}
}
localhost {
log
redir /dev-docs /dev-docs/
route /dev-docs* {
uri strip_prefix dev-docs
reverse_proxy localhost:8888 {
import theheaders
}
import webconf
}
}