mealie/Caddyfile.dev

33 lines
628 B
Text
Raw Normal View History

{
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
}
}