
* 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. * fix Caddyfile format to avoid complaints * docker-examples: bump all base images to python:3.13
15 lines
209 B
Caddyfile
15 lines
209 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
|
|
}
|