From c29df28a26c4698c835a10d166905f8829f5eb58 Mon Sep 17 00:00:00 2001 From: celogeek <65178+celogeek@users.noreply.github.com> Date: Wed, 7 Aug 2019 16:58:55 +0200 Subject: [PATCH] add proxy header for keep alive --- Dockerfile | 2 +- files/etc/nginx/proxy_params | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 982f74d..b97d661 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM nginx -RUN apt update && apt install -y certbot procps curl cron ca-cacert ca-certificates ssl-cert && apt clean +RUN apt update && apt install -y certbot procps curl cron ca-certificates ssl-cert && apt clean RUN rm /etc/nginx/conf.d/default.conf diff --git a/files/etc/nginx/proxy_params b/files/etc/nginx/proxy_params index c3e2683..ba437f6 100644 --- a/files/etc/nginx/proxy_params +++ b/files/etc/nginx/proxy_params @@ -6,4 +6,7 @@ proxy_set_header X-Forwarded-Proto $real_scheme; proxy_buffering off; proxy_request_buffering off; client_max_body_size 0; -proxy_read_timeout 36000s; +proxy_read_timeout 600s; +proxy_connect_timeout 600s; +proxy_http_version 1.1; +proxy_set_header Connection "";