added initial default config for caddy

This commit is contained in:
Paul 2020-08-08 14:13:08 +02:00
parent 7107d3a773
commit e13487e3fd

View File

@ -0,0 +1,42 @@
---
---
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: {}