Giter Club home page Giter Club logo

Comments (12)

jancelin avatar jancelin commented on May 13, 2024 5

add
client_max_body_size 500M ;
in
server {
https://github.com/jancelin/nginx-proxy/blob/master/nginx.tmpl

from nginx-proxy.

md5 avatar md5 commented on May 13, 2024 3

I believe this can be closed since #106 was merged. See the README for instructions: https://github.com/jwilder/nginx-proxy/blob/master/README.md#custom-nginx-configuration

from nginx-proxy.

hk0i avatar hk0i commented on May 13, 2024 2

I'm not super knowledgeable about nginx, is that nginx.tmpl usable as-is? When I drop in the template under my vhosts.d I get a 503. I see that there's some kind of templating going on with the {{ }} but I don't know if that's something from NGINX or something else. Either way I am not too sure why it's not working, I really just want to increase the client_max_body_size for my dev environment only and only for one particular vhost.

Scratch that, I was actually mounting to vhosts.d and not vhost.d (spelling). I still can't seem to get it to work right but I'll dig around more in the container and see what's happening.

Update I got it working! The problem was that I thought I had to come up with a completely new config because the docs mention something about checking the template to make sure you have everything you need, but when I looked at the template more closely I realized it was just including my vhost config inside of the server { block so all I had to do was add the one option I wanted in my file.

The other confusion was that the file should be named exactly as the host, when I was reading the doc I misinterpreted the mention of .conf to mean that it had to be my.host.conf

So in my case vhost.d/some.long.domain.com contains only:

client_body_max_size 500M

That seems to work. In case anyone else stumbles across this who misunderstood the docs.

from nginx-proxy.

egorpavlikhin avatar egorpavlikhin commented on May 13, 2024 1

client_body_max_size 500M

Correct term is client_max_body_size

from nginx-proxy.

atmoz avatar atmoz commented on May 13, 2024

Yes please, I also got this problem.

from nginx-proxy.

jancelin avatar jancelin commented on May 13, 2024

Yes please, I also got this problem.

from nginx-proxy.

atmoz avatar atmoz commented on May 13, 2024

I ended up using this fork: https://github.com/zedtux/nginx-proxy

from nginx-proxy.

ReedD avatar ReedD commented on May 13, 2024

👍

from nginx-proxy.

md5 avatar md5 commented on May 13, 2024

There has been more recent discussion of this issue in #29.

from nginx-proxy.

kamil-kielczewski avatar kamil-kielczewski commented on May 13, 2024

I have in past similar problem (in PHP, docker):
https://stackoverflow.com/q/44605469/860099

from nginx-proxy.

hk0i avatar hk0i commented on May 13, 2024

Thanks! I wish I had seen that sooner. It's so succinct.

from nginx-proxy.

jasonheecs avatar jasonheecs commented on May 13, 2024

Run into this issue as well. I made a derived docker image that increases the max upload size to 10 MB: https://github.com/jasonheecs/docker-nginx-proxy

from nginx-proxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.