# Example Caddy config for running pixa behind Caddy; see "Deployment" in # README.md. Replace images.example.com with pixa's public host name, and # 127.0.0.1:8080 with the address Caddy reaches pixa on. # # Caddy gets and renews the TLS certificate for the host name, passes the # Host, Origin and Referer headers on unchanged, sets X-Forwarded-For to the # client's address, and waits for pixa's answer with no time limit of its # own, so pixa's downstream_timeout is what ends a slow request. images.example.com # pixa asks for metrics.username and metrics.password on /metrics. This # line also keeps it off the public address, for a scraper that reaches # pixa directly; remove it to read /metrics through Caddy. respond /metrics 404 reverse_proxy 127.0.0.1:8080