How to setup up 'client_max_body_size' in this proxy? (upload large files) #261
-
Error description:gitlab error 413 (big file can't be uploaded). How can we setup nginx to upload large file? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
might be... enable the nginx conf and set your max file upload. make sure you have the same settings in your local application set up. |
Beta Was this translation helpful? Give feedback.
-
This is third issue in this topic: I have this problem too some times. We should add chapter in documentation that explains possible |
Beta Was this translation helpful? Give feedback.
-
Thanks @gustawdaniel for your suggestion! Let's see if we make this clear and help others. This proxy allows you to set 'client_max_body_size' in couple ways.
This way you will have 100m allowed as of uploadsize.conf
Adding this setting per site you must use the site (url) name as mentioned in this sample as well. You can set client_max_body_size at multiple context as of nginx docs, you can use it per location if you with to or at vhost (http) level. So, if your url is _ Your file will look like: client_max_body_size 1024m; Then you must stop your site container (example the nextcloud) and start again, so the nginx-proxy will update the options or if you can not stop it, you can reload nginx options using the following: $ docker exec -it [YOUR_NGINX_PROXY_CONTAINER_NAME] nginx -s reload Please let me know if this was useful. Thanks! |
Beta Was this translation helpful? Give feedback.
Thanks @gustawdaniel for your suggestion! Let's see if we make this clear and help others.
This proxy allows you to set 'client_max_body_size' in couple ways.
$ ./fresh-start.sh
with `--use-nginx-conf-files' argumentThis way you will have 100m allowed as of uploadsize.conf
If you already have the proxy running add this file to
./data/conf.d
folder.You can set this option per site as of nginx-proxy doc
Adding this setting per site you must use the site (url) name as mentioned in this sample as well.
You can set client_max_body_size at multiple context as of nginx docs, you can use it per location if you with to or at vhost (http) level.
So, if you…