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:
@@ -128,6 +128,9 @@
|
|||||||
forceSSL = true; # gitea complains if served over a different protocol than its config file says
|
forceSSL = true; # gitea complains if served over a different protocol than its config file says
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
# inherit kTLS;
|
# inherit kTLS;
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 100m;
|
||||||
|
'';
|
||||||
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:3000";
|
proxyPass = "http://127.0.0.1:3000";
|
||||||
|
Reference in New Issue
Block a user