diff --git a/configuration.nix b/configuration.nix index 9a2747b..67f14e9 100644 --- a/configuration.nix +++ b/configuration.nix @@ -148,9 +148,18 @@ in "git.${domainName}" = { forceSSL = true; enableACME = true; + extraConfig = '' + client_max_body_size 512M; + ''; locations = { "/" = { proxyPass = "http://localhost:3000"; + proxySetHeader = { + Host = "$host"; + X-Real-IP = "$remote_addr"; + X-Forwarded-For = "$proxy_add_x_forwarded_for"; + X-Forwarded-Proto = "https"; + }; }; }; };