paulbsd-salt/states/caddy/defaults.yaml

43 lines
994 B
YAML

---
---
apps:
http:
servers:
www-http:
automatic_https:
disable: true
listen:
- ":8080"
routes:
- match:
- path:
- "/"
host:
- www.paulbsd.com
- paulbsd.com
handle:
- handler: static_response
status_code: '301'
headers:
Location:
- http://localhost:4443
www-https:
automatic_https:
disable: true
listen:
- ":4443"
routes:
- match:
- path:
- "/*"
host:
- www.paulbsd.com
- paulbsd.com
handle:
- handler: reverse_proxy
upstreams:
- dial: sys01.paulbsd.com:443
transport:
protocol: http
tls: {}