Comments (12)
add
client_max_body_size 500M ;
in
server {
https://github.com/jancelin/nginx-proxy/blob/master/nginx.tmpl
from nginx-proxy.
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.
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.
client_body_max_size 500M
Correct term is client_max_body_size
from nginx-proxy.
Yes please, I also got this problem.
from nginx-proxy.
Yes please, I also got this problem.
from nginx-proxy.
I ended up using this fork: https://github.com/zedtux/nginx-proxy
from nginx-proxy.
👍
from nginx-proxy.
There has been more recent discussion of this issue in #29.
from nginx-proxy.
I have in past similar problem (in PHP, docker):
https://stackoverflow.com/q/44605469/860099
from nginx-proxy.
Thanks! I wish I had seen that sooner. It's so succinct.
from nginx-proxy.
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)
- I come in search of guidance, friendly url!
- Very active error.log HOT 5
- 500 Internal Server Error HOT 8
- SSL_POLICY=Mozilla-Modern got worse results on SSLLabs SSLtest than intermediate HOT 4
- phpipam + nginx-proxy = connection refused
- Broken testcase test/test_host-network-mode/test_host-network-mode.py HOT 1
- SSH Certificates will Not Update HOT 1
- HTTP/2 Rapid Reset Attack HOT 2
- Unable to download python requirements for testing HOT 1
- default.conf config file formatting corrupted and hardly readable (nginx -T) HOT 1
- Issue with Bookstack urls being re-written to http not https HOT 2
- 403 Forbidden error when serving static site HOT 1
- Cannot reach container in IPv6 network HOT 4
- Regression in Behavior with Fix #2186 Affecting SSL Connections HOT 9
- "daemon" directive is duplicate in /etc/nginx/nginx.conf error HOT 3
- connect() failed (111: Connection refused) while connecting to upstream HOT 2
- vhost.d for http part
- 502 Bad Gateway & Upstream connection refused HOT 5
- host header does not include port number HOT 2
- `nginx-proxy` pass converting `%1C` to pipe `|` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nginx-proxy.