From efcb038f9e6a98707629b10b76120dc3784387aa Mon Sep 17 00:00:00 2001 From: David Kebler Date: Mon, 18 May 2020 13:45:06 -0700 Subject: [PATCH] add lights conf and also a script to add a new conf with the correct ownership --- conf/lights.conf | 16 ++++++++++++++++ scripts/newconf | 3 +++ 2 files changed, 19 insertions(+) create mode 100644 conf/lights.conf create mode 100755 scripts/newconf diff --git a/conf/lights.conf b/conf/lights.conf new file mode 100644 index 0000000..f507cb2 --- /dev/null +++ b/conf/lights.conf @@ -0,0 +1,16 @@ +#!/bin/bash +(r53) { + tls { + dns lego_deprecated route53 + } +} +# Main http/https redirect for anything arriving on port 80/http +*.kebler.net:80 { + redir https://{label1}.kebler.net{uri} +} + +# Git Server +https://dev.lights.kebler.net, https://dev.lights.238.kebler.net { + import r53 + reverse_proxy http://lights.kebler.net:8080 + } diff --git a/scripts/newconf b/scripts/newconf new file mode 100755 index 0000000..7e6fbb1 --- /dev/null +++ b/scripts/newconf @@ -0,0 +1,3 @@ +#!/bin/bash +touch /opt/caddy/conf/$1.conf +sudo chown caddy:sysadmin /opt/caddy/conf/$1.conf