Hi averyone, I’m have a container with NGINX and I wanna incrase the keep alive timeout value, the default value is 65, I have already modified the Dockerfile document adding the follow enviroment variables:
ENV NGINX_PROXY_READ_TIMEOUT 300
ENV NGINX_PROXY_CONNECT_TIMEOUT 300
ENV NGINX_PROXY_SEND_TIMEOUT 300
ENV NGINX_KEEPALIVE_TIMEOUT 300
But I can’t change the value, also I added a new configuration file like this:
Dockerfile
FROM tiangolo/uwsgi-nginx-flask:python3.9
COPY ./requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
COPY nginx443.conf /etc/nginx/conf.d/
COPY ./app /app
nginx443.conf
server{
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_send_timeout 300;
}