add lights conf and also a script to add a new conf with the correct ownership

giskard
David Kebler 2020-05-18 13:45:06 -07:00
parent ab07d9c4a4
commit efcb038f9e
2 changed files with 19 additions and 0 deletions

16
conf/lights.conf Normal file
View File

@ -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
}

3
scripts/newconf Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
touch /opt/caddy/conf/$1.conf
sudo chown caddy:sysadmin /opt/caddy/conf/$1.conf