lifeto-shop/Caddyfile

32 lines
850 B
Caddyfile
Raw Normal View History

2025-05-13 21:02:59 +00:00
{
admin off
2025-06-23 06:33:03 +00:00
log {
include http.log.access http.handlers.reverse_proxy
output stdout
format console
level debug
}
2025-05-13 21:02:59 +00:00
}
:{$PORT:8080} {
root * {$ROOT:./dist}
file_server
# Proxy requests with "/lifeto" prefix to the remote server
handle /lifeto/* {
uri strip_prefix /lifeto
reverse_proxy https://beta.lifeto.co {
2025-06-23 06:33:03 +00:00
header_up Host {upstream_hostport}
2025-05-13 21:02:59 +00:00
header_up X-Forwarded-For {remote_host}
2025-06-23 06:33:03 +00:00
header_up User-Agent "LifetoShop/1.0"
2025-05-13 21:02:59 +00:00
header_down -Connection
header_down -Keep-Alive
header_down -Proxy-Authenticate
header_down -Proxy-Authorization
header_down -Te
header_down -Trailers
header_down -Transfer-Encoding
header_down -Upgrade
}
}
}