How to configure nginx config?
See original GitHub issueHi, I have a docker container running with:
FROM tiangolo/uwsgi-nginx-flask:python3.6
COPY requirements.txt /tmp/
RUN pip install -U pip
RUN pip install -r /tmp/requirements.txt
COPY ./app /app
When running (it runs flawless except for this), there is a particular action that causes the server to crash with the following message:
2018/10/02 13:06:43 [error] 10#10: *9 upstream sent too big header while reading response header from upstream
Iβm aware that the problem is with the nginx.config file and that it is located in /etc/nginx/conf.d/nginx.conf. More particularly, I have to add the answer here to the file. Because the request header is too large.
I have tried to modify that file while building the docker image, but havenβt figured out exactly how to do it.
Here is my project tree:
βββ Dockerfile
βββ app
β βββ config.py
β βββ data
β β βββ users.json
β βββ forms.py
β βββ main.py
β βββ static
β β βββ ajax-loader.gif
β β βββ logo.png
β βββ templates
β β βββ 404.html
β β βββ 500.html
β β βββ base.html
β β βββ upload.html
β βββ utils.py
βββ requirements.txt
How exactly should I proceed?
Sorry for the question, appreciate any help and this awesome image!
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
Beginner's Guide - Nginx.org
The way nginx and its modules work is determined in the configuration file. By default, the configuration file is named nginx.conf and placed...
Read more >How to Configure NGINX | Linode
All NGINX configuration files are located in the /etc/nginx/ directory. The primary configuration file is /etc/nginx/nginx.conf .
Read more >NGINX Configuration Guide: How to Get Started - Plesk
Every NGINX configuration file will be found in the /etc/nginx/ directory, with the main configuration file located in /etc/nginx/nginx.conf ...
Read more >Install and configure Nginx - Ubuntu
In this tutorial we'll install Nginx and set up a basic site. What you'll learn. How to set up Nginx; Some basic Nginx...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Letβs say you create a file
buffer-size.conf:that file is right beside your
Dockerfile, that now has an additional line:β¦so your final
Dockerfilemight look like:I guess the original issue of this thread was solved too, so Iβll close it.
But feel free to add more comments or open new issues.