From e13487e3fd08ae5648c67d02156a7deb9a50fd72 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 8 Aug 2020 14:13:08 +0200 Subject: [PATCH] added initial default config for caddy --- states/caddy/defaults.yaml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 states/caddy/defaults.yaml 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: {}