fix: enable SSL for keycloak

This commit is contained in:
Benjamin Bädorf 2023-10-28 21:34:45 +02:00
parent 8e07034aad
commit 8da5f0b48a
No known key found for this signature in database
GPG key ID: 1B7BF5B77A521346

View file

@ -12,17 +12,22 @@
#owner = "keycloak";
};
services.nginx.virtualHosts."auth.pub.solar".locations = {
"= /" = {
extraConfig = ''
return 302 /realms/pub.solar/account;
'';
};
services.nginx.virtualHosts."auth.pub.solar" = {
enableACME = true;
forceSSL = true;
"/" = {
extraConfig = ''
proxy_pass http://localhost:8080;
'';
locations = {
"= /" = {
extraConfig = ''
return 302 /realms/pub.solar/account;
'';
};
"/" = {
extraConfig = ''
proxy_pass http://localhost:8080;
'';
};
};
};