directus: fix sso
This commit is contained in:
parent
6abc1e75b9
commit
5384918ce6
|
@ -22,6 +22,11 @@ in
|
||||||
services.nginx.virtualHosts."${domain}" = {
|
services.nginx.virtualHosts."${domain}" = {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:${toString config.services.keycloak.settings.http-port}";
|
proxyPass = "http://127.0.0.1:${toString config.services.keycloak.settings.http-port}";
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_buffer_size 128k;
|
||||||
|
proxy_buffers 4 256k;
|
||||||
|
proxy_busy_buffers_size 256k;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,10 +22,14 @@ in
|
||||||
"DB_PORT" = "5432";
|
"DB_PORT" = "5432";
|
||||||
"DB_DATABASE" = "directus_ese";
|
"DB_DATABASE" = "directus_ese";
|
||||||
"DB_USER" = "directus_ese";
|
"DB_USER" = "directus_ese";
|
||||||
|
"PUBLIC_URL" = "https://directus-ese.ifsr.de";
|
||||||
|
"AUTH_PROVIDERS"="keycloak";
|
||||||
"AUTH_KEYCLOAK_DRIVER" = "openid";
|
"AUTH_KEYCLOAK_DRIVER" = "openid";
|
||||||
"AUTH_KEYCLOAK_CLIENT_ID" = "directus-ese";
|
"AUTH_KEYCLOAK_CLIENT_ID" = "directus-ese";
|
||||||
"AUTH_KEYCLOAK_ISSUER_URL" = "http://sso.ifsr.de/realms/internal/.well-known/openid-configuration";
|
"AUTH_KEYCLOAK_ISSUER_URL" = "https://sso.ifsr.de/realms/internal/.well-known/openid-configuration";
|
||||||
"AUTH_KEYCLOAK_IDENTIFIER_KEY" = "email";
|
"AUTH_KEYCLOAK_IDENTIFIER_KEY" = "email";
|
||||||
|
"AUTH_KEYCLOAK_ALLOW_PUBLIC_REGISTRATION"="true";
|
||||||
|
"AUTH_KEYCLOAK_DEFAULT_ROLE_ID"="a6b7a1b6-a6fa-442c-87fd-e37c2a16424b";
|
||||||
};
|
};
|
||||||
environmentFiles = [
|
environmentFiles = [
|
||||||
config.sops.secrets."directus_env".path
|
config.sops.secrets."directus_env".path
|
||||||
|
|
Loading…
Reference in a new issue