OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: MichaDebuss on January 06, 2024, 09:31:19 am

Title: [SOLVED] NGINX - How to change upload_max_filesize from default 1M to 100M
Post by: MichaDebuss on January 06, 2024, 09:31:19 am
Hello,

how can I change the upload_max_filesize from default 1MB to 100 MB?

Picture upload is not possible with 1MB to Wordpress or ghost.

Hope, anyone can help me.  :)

Best regards,
Michael
Title: Re: NGINX - How to change upload_max_filesize from default 1M to 100M
Post by: Fright on January 06, 2024, 07:27:00 pm
Hi
you mean client_max_body_size ? (upload_max_filesize is from php.ini afaik)
look for Maximum Body Size in server and location settings.
and it's defined as 200MB by default at http level iirc
Title: Re: NGINX - How to change upload_max_filesize from default 1M to 100M
Post by: MichaDebuss on January 07, 2024, 12:58:06 pm
Hi,

I changed client_max_body_size to 200MB and restarted NGINX.

But the error always appeard.

Request is larger than the maximum file size the server allows
Title: Re: NGINX - How to change upload_max_filesize from default 1M to 100M
Post by: Fright on January 07, 2024, 02:04:54 pm
maybe you are changing the settings of the wrong nginx then (may be you need to look at the backend (docker\proxmox) nginx settings)?
Title: Re: NGINX - How to change upload_max_filesize from default 1M to 100M
Post by: MichaDebuss on January 14, 2024, 06:59:58 pm
Thank you @Fright.

The problem was really the backend settings from proxmox container.