From 118c8ee1f189e2c694b12a2725c656182db27856 Mon Sep 17 00:00:00 2001 From: Monika Katiyar Date: Wed, 16 Aug 2017 15:59:41 +0530 Subject: [PATCH] Added nginx configuration for uploading large sized blobs (layer size) to registry when using nginx as reverse proxy from monikakatiyar16 Signed-off-by: Monika Katiyar --- contrib/compose/nginx/docker-registry-v2.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/compose/nginx/docker-registry-v2.conf b/contrib/compose/nginx/docker-registry-v2.conf index 65c4d776..df698c79 100644 --- a/contrib/compose/nginx/docker-registry-v2.conf +++ b/contrib/compose/nginx/docker-registry-v2.conf @@ -4,3 +4,6 @@ proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 900; +proxy_send_timeout 300; +proxy_request_buffering off; (see issue #2292 - https://github.com/moby/moby/issues/2292) +proxy_http_version 1.1;