fix: netbird redirect

This commit is contained in:
Patrick 2024-11-18 13:44:06 +01:00
parent ed69716f34
commit 69052846bf
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
2 changed files with 7 additions and 1 deletions

View file

@ -222,7 +222,10 @@ in
systems.oauth2.netbird = {
public = true;
displayName = "Netbird";
originUrl = "https://netbird.${config.secrets.secrets.global.domains.web}/#callback";
originUrl = [
"https://netbird.${config.secrets.secrets.global.domains.web}/peers"
"https://netbird.${config.secrets.secrets.global.domains.web}/add-peers"
];
originLanding = "https://netbird.${config.secrets.secrets.global.domains.web}/";
preferShortUsername = true;
enableLocalhostRedirects = true;

View file

@ -44,6 +44,9 @@
enableNginx = true;
settings = {
AUTH_AUTHORITY = "https://auth.${config.secrets.secrets.global.domains.web}/oauth2/openid/netbird";
# Fix Kanidm not supporting fragmented URIs
AUTH_REDIRECT_URI = "/peers";
AUTH_SILENT_REDIRECT_URI = "/add-peers";
};
};