From d644fafd7289a59c1a7f629d5678d1c79233a999 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu>
Date: Fri, 10 Feb 2017 15:23:16 +0100
Subject: [PATCH] Replacement of apt-cacher-ng (refs #20417).

---
 2.Common_services/5.Nginx/vhost_skyreach.conf | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/2.Common_services/5.Nginx/vhost_skyreach.conf b/2.Common_services/5.Nginx/vhost_skyreach.conf
index 927f76ae..7a7c93b0 100644
--- a/2.Common_services/5.Nginx/vhost_skyreach.conf
+++ b/2.Common_services/5.Nginx/vhost_skyreach.conf
@@ -52,7 +52,7 @@ server {
 	}
 	# APT proxy
 	location /apt {
-		location ~ ^/apt/(http|https)/([\w\.\-\_]+.ubuntu.com/ubuntu|ftp.debian.org/debian|mozilla.debian.net|panel.ubicast.eu)/(.*)$ {
+		location ~ ^/apt/(http|https)/([\w\.\-\_]+.ubuntu.com/ubuntu|ftp.debian.org/debian|panel.ubicast.eu)/(.*)$ {
 			resolver 127.0.0.1;
 			proxy_pass $1://$2/$3;
 			proxy_cache uc-apt-cache;
@@ -70,3 +70,13 @@ server {
 		}
 	}
 }
+
+server {
+	# Replacement of apt-cacher-ng
+	listen 3142;
+
+	location / {
+		resolver 127.0.0.1;
+		proxy_pass http://{{ server_name }}/apt/$scheme/$host$request_uri;
+	}
+}
-- 
GitLab