From fcd8bfdf01b8d0bc5a20f142a551ee115aae30a2 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 31 Jan 2023 21:22:55 +0100 Subject: [PATCH] VEGAS/sso: increase nginx proxy buffer size --- hosts/VEGAS/services/sso/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hosts/VEGAS/services/sso/default.nix b/hosts/VEGAS/services/sso/default.nix index 9abb55a..8b4671d 100644 --- a/hosts/VEGAS/services/sso/default.nix +++ b/hosts/VEGAS/services/sso/default.nix @@ -19,7 +19,14 @@ in }; services.nginx.virtualHosts = { "${login}" = lib.recursiveUpdate (vhosts.proxy kc.url) { - locations."= /".return = "302 /auth/realms/master/account/"; + locations = { + "= /".return = "302 /auth/realms/master/account/"; + "/".extraConfig = '' + proxy_busy_buffers_size 512k; + proxy_buffers 4 512k; + proxy_buffer_size 256k; + ''; + }; }; "account.${domain}" = vhosts.redirect "https://${login}/auth/realms/master/account/"; };