From 4159eb592be9a45aefb4b29ece6b07409b080cda Mon Sep 17 00:00:00 2001 From: Pablo Carranza Velez Date: Fri, 8 Dec 2017 14:03:53 -0800 Subject: [PATCH 1/2] nginx.conf: Use equal values for client_body_buffer_size and client_max_body_size to avoid writing big files to disk Idea taken from https://medium.com/urban-massage-product/nginx-with-docker-easier-said-than-done-d1b5815d00d0 after noticing a user pushing a big layer causing out of space errors writing to /var/cache/nginx. Change-Type: patch Signed-off-by: Pablo Carranza Velez --- nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nginx.conf b/nginx.conf index d7e4340..4ffa3df 100644 --- a/nginx.conf +++ b/nginx.conf @@ -43,6 +43,10 @@ http { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # Add to x-forward-for proxy_read_timeout 900; proxy_buffering off; + # These two should be the same or nginx will start writing + # large request bodies to temp files + client_body_buffer_size 1m; + client_max_body_size 1m; upstream docker-registry { server localhost:5000; From b516b3ce8128cc4c0ef3143241a22fdcef19b6c7 Mon Sep 17 00:00:00 2001 From: "resin-io-versionbot[bot]" Date: Mon, 11 Dec 2017 08:07:41 +0000 Subject: [PATCH 2/2] v1.5.1 --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b19be51..23fa0ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY! This project adheres to [Semantic Versioning](http://semver.org/). +## v1.5.1 - 2017-12-11 + +* Nginx.conf: Use equal values for client_body_buffer_size and client_max_body_size to avoid writing big files to disk #28 [Pablo Carranza Velez] + ## v1.5.0 - 2017-09-04 * Update registry to 2.6.2 #27 [Akis Kesoglou]