From f96be13ce17ec0915d0dc64932eaa2b604baa551 Mon Sep 17 00:00:00 2001
From: Steffen Vogel <post@steffenvogel.de>
Date: Thu, 17 Oct 2019 17:31:17 +0000
Subject: [PATCH] nginx: reduce caching of upstream hostnames

---
 etc/nginx/villas.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/etc/nginx/villas.conf b/etc/nginx/villas.conf
index 7bf7fb1..72c413e 100644
--- a/etc/nginx/villas.conf
+++ b/etc/nginx/villas.conf
@@ -1,3 +1,5 @@
+resolver 127.0.0.1 [::1]:5353 valid=30s;
+
 # If we receive X-Forwarded-Proto, pass it through; otherwise, pass along the
 # scheme used to connect to this server
 map $http_x_forwarded_proto $proxy_x_forwarded_proto {
-- 
GitLab