How to upload larger files? - nginx does not accept

, ,

My YunoHost server

Hardware: VPS bought online
YunoHost version: 11.2.3 (stable)
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

Hello all,

I have installed a CMS via my_webapp (ConcreteCMS). (I know, I could have also installed it directly as an APP. But I didn’t want to :wink: )

When I want to upload somewhat larger images (approx. 3 MB), I get the error message # 413 Request Entity Too Large".

I found out that nginx does not accept “large” files.

I could now add in /etc/nginx/conf.d/(domain).conf in the segment

server {
    listen 443 ssl http2;

add the following line:

client_max_body_size 10M;

that works so far.

The problem: when YunoHost performs actions, there are constant warnings that this config file has been changed and is no longer updated with.

How can this be done better? Can any of you give me a tip?

Thanks a lot!

Check out your webadmin page for My_webapp, it has a nice section regarding your use case.

Even better, it already ships a /etc/nginx/conf.d/<your_domain.tld>.d/my_webapp.d/example-custom-nginx-config.conf file, where you only have to uncomment the second line and reload NGINX. :wink:


Yeah - that works :slight_smile: Thank you very much!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.