rejetto forum

Software => HFS ~ HTTP File Server => router & port problems => Topic started by: Win_7 on September 08, 2023, 07:23:30 PM

Title: nginx 413 Request Entity Too Large
Post by: Win_7 on September 08, 2023, 07:23:30 PM
Hello im using a template i found of nginx that passes traffic to hfs server and adds ssl cert but seems like the max data that can be in a request or post is extremely limited leading to the https version of my site being almost completely unusable how can i fix this?

config:

#user  nobody;
worker_processes  1;

events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;


    # HTTPS server
    #
    server {
        listen       443 ssl;
        server_name  localhost;

        ssl_certificate      cert.pem;
        ssl_certificate_key  cert.key;

        ssl_session_cache    shared:SSL:1m;
        ssl_session_timeout  5m;

        ssl_ciphers  HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers  on;

        location / {
         proxy_pass http://127.0.0.1:80;
         proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
        }
    }

}
Title: Re: nginx 413 Request Entity Too Large
Post by: Win_7 on September 08, 2023, 07:24:26 PM
and this post is hfs related as the server thats being accessed is hfs where im trying to get https for
Title: Re: nginx 413 Request Entity Too Large
Post by: rejetto on September 09, 2023, 09:36:26 AM
this is a problem with nginx configuration (nothing really to do with hfs).
i'm no nginx expert but in the past i've already met and fixed this problem, but I can't remember, so: https://www.google.com/search?q=nginx+reverse+proxy+max+upload+size