fix: enable SSL for keycloak

This commit is contained in:
Benjamin Bädorf 2023-10-28 21:34:45 +02:00 committed by b12f
parent ce24876f3d
commit 16a5ee93cc
Signed by: pub.solar gitea
GPG key ID: F0332B04B7054873

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;
'';
};
};
};