๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
ansible-playbooks/roles/caddy/vars/reverse_proxy.yml

27 lines
777 B

caddy_reverse_proxy_config:
apps:
http:
servers:
rproxy:
listen:
- "tcp4/:443"
- "tcp6/:443"
automatic_https:
disable: "{{ caddy_use_lego }}"
tls_connection_policies:
- match:
sni:
- "{{ host_fqdn }}"
default_sni: "{{ host_fqdn }}"
routes:
- match:
- host:
- "{{ host_fqdn }}"
handle:
- handler: subroute
routes:
- handle:
- handler: reverse_proxy
upstreams:
- dial: "127.0.0.1:{{ reverse_proxy_port }}"
terminal: true