use env vars for subdomain and domain in caddy

This commit is contained in:
2024-12-07 11:38:09 +01:00
parent 2b61a00841
commit 52fc271b71
9 changed files with 16 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
authentik.veenboer.xyz {
authentik.{$DOMAIN} {
log {
output file /var/log/authentik-root.log
}

View File

@@ -1,4 +1,4 @@
geo.rik.veenboer.xyz {
geo.{$SUBDOMAIN}.{$DOMAIN} {
log {
output file /var/log/geo.log
}

View File

@@ -1,4 +1,4 @@
ha.rik.veenboer.xyz {
ha.{$SUBDOMAIN}.{$DOMAIN} {
log {
output file /var/log/ha.log
}

View File

@@ -1,5 +1,5 @@
rik.veenboer.xyz \
*.rik.veenboer.xyz \
{$SUBDOMAIN}.{$DOMAIN} \
*.{$SUBDOMAIN}.{$DOMAIN} \
{
handle_path /test/* {
reverse_proxy host:12345

View File

@@ -1,4 +1,4 @@
test.rik.veenboer.xyz {
test.{$SUBDOMAIN}.{$DOMAIN} {
log {
output file /var/log/test.log
}
@@ -7,7 +7,7 @@ test.rik.veenboer.xyz {
reverse_proxy host:15000
}
auth.rik.veenboer.xyz {
auth.{$SUBDOMAIN}.{$DOMAIN} {
route {
authenticate with myportal
}