add nadal conf plus update scripts to support conf variable with caddy.conf as the default
parent
aaa28df341
commit
ec5405889e
|
@ -0,0 +1,32 @@
|
|||
#!/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://git.kebler.net, https://git.645.kebler.net {
|
||||
import r53
|
||||
reverse_proxy http://nadal.kebler.net:3000
|
||||
}
|
||||
|
||||
# Home Assistant Server
|
||||
https://ha.kebler.net, https://ha.645.kebler.net {
|
||||
import r53
|
||||
reverse_proxy /* hassio.kebler.net:8123
|
||||
}
|
||||
|
||||
https://gateway.kebler.net, https://gateway.645.kebler.net {
|
||||
import r53
|
||||
reverse_proxy /* router.kebler.net:8080
|
||||
}
|
||||
|
||||
https://docker.kebler.net, https://docker.645.kebler.net {
|
||||
import r53
|
||||
reverse_proxy /* http://nadal.kebler.net:9000
|
||||
}
|
|
@ -1,2 +1,3 @@
|
|||
#!/bin/bash
|
||||
/opt/caddy/caddy adapt --config /opt/caddy/caddy.conf --adapter caddyfile > caddy.json
|
||||
CONF=${1:-caddy}
|
||||
/opt/caddy/caddy adapt --config /opt/caddy/$CONF.conf --adapter caddyfile > caddy.json
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
# one off run command for testing without systemd
|
||||
CONF=${1:-caddy}
|
||||
source /opt/caddy/env/aws.sh
|
||||
sudo -E /usr/bin/env | grep AWS
|
||||
sudo -E /opt/caddy/caddy run --config /opt/caddy/conf/caddy.conf --adapter caddyfile
|
||||
sudo -E /opt/caddy/caddy run --config /opt/caddy/conf/$CONF.conf --adapter caddyfile
|
||||
|
|
Loading…
Reference in New Issue