use env vars for subdomain and domain in caddy
This commit is contained in:
@@ -13,13 +13,12 @@
|
||||
retry_attempts 3
|
||||
retry_interval 10
|
||||
|
||||
base_auth_url https://authentik.rik.veenboer.xyz
|
||||
metadata_url https://authentik.rik.veenboer.xyz/application/o/caddy/.well-known/openid-configuration
|
||||
# metadata_url http://192.168.2.200:15000/caddy/.well-known/openid-configuration
|
||||
base_auth_url https://authentik.{$SUBDOMAIN}.{$DOMAIN}
|
||||
metadata_url https://authentik.{$SUBDOMAIN}.{$DOMAIN}/application/o/caddy/.well-known/openid-configuration
|
||||
}
|
||||
authentication portal myportal {
|
||||
enable identity provider generic
|
||||
cookie domain veenboer.xyz
|
||||
cookie domain {$DOMAIN}
|
||||
ui {
|
||||
links {
|
||||
"My Identity" "/whoami" icon "las la-user"
|
||||
@@ -40,7 +39,7 @@
|
||||
}
|
||||
}
|
||||
authorization policy mypolicy {
|
||||
set auth url https://auth.rik.veenboer.xyz/oauth2/generic
|
||||
set auth url https://auth.{$SUBDOMAIN}.{$DOMAIN}/oauth2/generic
|
||||
allow roles authp/admin authp/user
|
||||
validate bearer header
|
||||
inject headers with claims
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
dynamic_dns {
|
||||
provider route53
|
||||
domains {
|
||||
veenboer.xyz. rik
|
||||
{$DOMAIN}. {$SUBDOMAIN}
|
||||
}
|
||||
versions ipv4
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user