servo: gitea: increase client_max_body_size in nginx config

Ben was unable to upload a clone of a repo over HTTP, due to a 413 error.

Nginx's default limit is 1 megabyte ;( https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size

See https://forum.gitea.com/t/unable-to-push-to-repo-due-to-rpc-failed-http-413-error/2630/4
This commit is contained in:
Shelvacu
2025-04-20 21:44:46 -07:00
committed by Shelvacu on fw
parent db12529df3
commit 0481a2f419

View File

@@ -128,6 +128,9 @@
forceSSL = true; # gitea complains if served over a different protocol than its config file says
enableACME = true;
# inherit kTLS;
extraConfig = ''
client_max_body_size 100m;
'';
locations."/" = {
proxyPass = "http://127.0.0.1:3000";