Ansible Role: reverse_proxy

This Ansible role sets up a reverse proxy using Caddy.

For example, the following inventory variables will proxy requests to grafana.example.com to localhost:3000:

reverse_proxy_sites:
  grafana.example.com: localhost:3000

Variables

Variable

Required

Description

reverse_proxy_acme_ca

No

URL to a custom ACME CA directory, refer to Caddy documentation.

reverse_proxy_acme_ca_root

No

Root certificate of the ACME server, required if the ACME server defined in reverse_proxy_acme_ca uses a certificate that is not publicly trusted.

reverse_proxy_sites

Yes

Dictionary of sites and their proxy target.