reflex/docker-example/production-one-port/Caddyfile
Masen Furer 1d4603c60a
Add production-one-port example
A more complex version of simple-one-port that facilitates better layer caching
to shorten build times and multi-stage build to reduce final image size.

Harder to understand, but ultimately nicer to use.
2024-12-05 11:37:41 -08:00

14 lines
208 B
Caddyfile

:{$PORT}
encode gzip
@backend_routes path /_event/* /ping /_upload /_upload/*
handle @backend_routes {
reverse_proxy localhost:8000
}
root * /srv
route {
try_files {path} {path}/ /404.html
file_server
}