fix(keycloak): large headers

This commit is contained in:
arcnmx 2024-06-23 14:59:59 -07:00
parent 32ff0a8e0c
commit ed909897b3

View file

@ -9,6 +9,10 @@
locations."/".proxy.enable = true;
name.shortServer = mkDefault "sso";
copyFromVhost = mkDefault "keycloak";
extraConfig = ''
proxy_buffer_size 128k;
proxy_buffers 4 256k;
'';
in {
config.services.nginx = {
upstreams'.${upstreamName}.servers = {
@ -28,12 +32,12 @@ in {
};
virtualHosts = {
keycloak = {
inherit name locations;
inherit name locations extraConfig;
ssl.force = mkDefault true;
proxy.upstream = mkDefault upstreamName;
};
keycloak'local = {
inherit name locations;
inherit name locations extraConfig;
ssl = {
force = mkDefault true;
cert = {