Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Web Proxy Filtering and Caching
(Moderator:
fabian
) »
[SOLVED] NGINX - How to change upload_max_filesize from default 1M to 100M
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] NGINX - How to change upload_max_filesize from default 1M to 100M (Read 1588 times)
MichaDebuss
Newbie
Posts: 18
Karma: 1
[SOLVED] NGINX - How to change upload_max_filesize from default 1M to 100M
«
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
«
Last Edit: January 14, 2024, 07:00:18 pm by MichaDebuss
»
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: NGINX - How to change upload_max_filesize from default 1M to 100M
«
Reply #1 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
Logged
MichaDebuss
Newbie
Posts: 18
Karma: 1
Re: NGINX - How to change upload_max_filesize from default 1M to 100M
«
Reply #2 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
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: NGINX - How to change upload_max_filesize from default 1M to 100M
«
Reply #3 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)?
Logged
MichaDebuss
Newbie
Posts: 18
Karma: 1
Re: NGINX - How to change upload_max_filesize from default 1M to 100M
«
Reply #4 on:
January 14, 2024, 06:59:58 pm »
Thank you @Fright.
The problem was really the backend settings from proxmox container.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Web Proxy Filtering and Caching
(Moderator:
fabian
) »
[SOLVED] NGINX - How to change upload_max_filesize from default 1M to 100M