fix: keycloak redirect to /auth

This commit is contained in:
Kat Inskip 2022-07-17 21:41:42 -07:00
parent c133f603fa
commit 4a85789f64
Signed by: kat
GPG key ID: 465E64DECEA8CF0F

View file

@ -55,7 +55,12 @@ in {
services.nginx.virtualHosts."auth.${config.network.dns.domain}" = {
useACMEHost = "domain-auth";
forceSSL = true;
locations = { "/".proxyPass = "http://127.0.0.1:8089"; };
locations = {
"/".extraConfig = ''
return 301 /auth;
'';
"/auth".proxyPass = "http://127.0.0.1:8089/auth";
};
};
deploy.tf.dns.records.services_keycloak = {