diff --git a/states/caddy/defaults.yaml b/states/caddy/defaults.yaml new file mode 100644 index 0000000..61ab780 --- /dev/null +++ b/states/caddy/defaults.yaml @@ -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: {}