grrrrrrr
This commit is contained in:
parent
0eb8c89d56
commit
f66458041d
|
@ -12,7 +12,7 @@ with lib;
|
|||
settings = {
|
||||
hostname = dn;
|
||||
http-port = 8787;
|
||||
https-port = 8788;
|
||||
# https-port = 8788;
|
||||
http-enabled = true;
|
||||
hostname-strict-https = false;
|
||||
proxy-headers = "forwarded";
|
||||
|
@ -20,12 +20,19 @@ with lib;
|
|||
};
|
||||
database.passwordFile = "/keycloakbd";
|
||||
};
|
||||
|
||||
nginx.virtualHosts.${dn} = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://localhost:${toString config.services.keycloak.settings.http-port}";
|
||||
extraConfig = ''
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -131,6 +131,7 @@ in
|
|||
recommendedProxySettings = true;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
|
||||
virtualHosts."tfcconnection.org" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
|
|
Loading…
Reference in a new issue