Caddy
This commit is contained in:
parent
88c7350377
commit
e26662597a
2 changed files with 40 additions and 10 deletions
|
|
@ -16,6 +16,20 @@ kaboot.example.com {
|
|||
}
|
||||
|
||||
auth.example.com {
|
||||
@oidc path /application/o/*
|
||||
|
||||
handle @oidc {
|
||||
reverse_proxy authentik-server:9000 {
|
||||
header_up X-Forwarded-Proto {scheme}
|
||||
header_up X-Forwarded-Host {host}
|
||||
header_down -Access-Control-Allow-Origin
|
||||
}
|
||||
header Access-Control-Allow-Origin "https://kaboot.example.com"
|
||||
header Access-Control-Allow-Methods "GET, POST, OPTIONS"
|
||||
header Access-Control-Allow-Headers "Content-Type, Authorization"
|
||||
}
|
||||
|
||||
handle {
|
||||
reverse_proxy authentik-server:9000 {
|
||||
header_up X-Forwarded-Proto {scheme}
|
||||
header_up X-Forwarded-Host {host}
|
||||
|
|
@ -23,4 +37,5 @@ auth.example.com {
|
|||
keepalive 30s
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -183,6 +183,20 @@ ${KABOOT_DOMAIN} {
|
|||
}
|
||||
|
||||
${AUTH_DOMAIN} {
|
||||
@oidc path /application/o/*
|
||||
|
||||
handle @oidc {
|
||||
reverse_proxy authentik-server:9000 {
|
||||
header_up X-Forwarded-Proto {scheme}
|
||||
header_up X-Forwarded-Host {host}
|
||||
header_down -Access-Control-Allow-Origin
|
||||
}
|
||||
header Access-Control-Allow-Origin "https://${KABOOT_DOMAIN}"
|
||||
header Access-Control-Allow-Methods "GET, POST, OPTIONS"
|
||||
header Access-Control-Allow-Headers "Content-Type, Authorization"
|
||||
}
|
||||
|
||||
handle {
|
||||
reverse_proxy authentik-server:9000 {
|
||||
header_up X-Forwarded-Proto {scheme}
|
||||
header_up X-Forwarded-Host {host}
|
||||
|
|
@ -190,6 +204,7 @@ ${AUTH_DOMAIN} {
|
|||
keepalive 30s
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue