From 2fc940a186ec617af2efa2d5f13655c90894e4f4 Mon Sep 17 00:00:00 2001 From: blake Date: Sat, 11 Oct 2025 19:15:22 -0500 Subject: [PATCH] 316 current 2025-10-11 19:11:22 25.05.20251006.20c4598 6.12.50 * --- flake.nix | 2 +- modules/homelab/services/gitea/default.nix | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 495755e..8f92f11 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ # flake for blakes nixos config # define new devices in outputs -# generation: 315 current 2025-10-11 19:03:52 25.05.20251006.20c4598 6.12.50 * +# generation: 316 current 2025-10-11 19:11:22 25.05.20251006.20c4598 6.12.50 * { description = "blakes nix config"; inputs = { diff --git a/modules/homelab/services/gitea/default.nix b/modules/homelab/services/gitea/default.nix index cafeae8..65cc901 100644 --- a/modules/homelab/services/gitea/default.nix +++ b/modules/homelab/services/gitea/default.nix @@ -97,6 +97,16 @@ in sslCertificateKey = sec."ssl_blakedheld_key".path; locations."/" = { proxyPass = "http://127.0.0.1:${toString cfg.port}"; + extraConfig = + client_max_body_size 512M; + + "proxy_pass http://localhost:3000;" + + "proxy_set_header Connection $http_connection;' + + "proxy_set_header Upgrade $http_upgrade;' + + "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;" + ; }; }; # external reverse proxy entry @@ -105,6 +115,16 @@ in forceSSL = true; locations."/" = { proxyPass = "http://127.0.0.1:${toString cfg.port}"; + extraConfig = + client_max_body_size 512M; + + "proxy_pass http://localhost:3000;" + + "proxy_set_header Connection $http_connection;' + + "proxy_set_header Upgrade $http_upgrade;' + + "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;" + ; }; };