From eb6deee032a5fb8c63046a46fe37fdd34e102e59 Mon Sep 17 00:00:00 2001
From: Gregor Kleen <gkleen@yggdrasil.li>
Date: Mon, 17 Aug 2020 17:40:21 +0200
Subject: ymir: start nginx without odin

---
 custom/ymir-nginx.nix | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'custom')

diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix
index a001d703..dd30fcfd 100644
--- a/custom/ymir-nginx.nix
+++ b/custom/ymir-nginx.nix
@@ -254,7 +254,8 @@ in {
           auth_basic "Reverse proxy to odin";
           auth_basic_user_file /srv/www/odin/htpasswd;
 
-          proxy_pass http://odin.asgard.yggdrasil/;
+          set $upstream http://odin.asgard.yggdrasil/
+          proxy_pass $upstream;
         }
       }
 
-- 
cgit v1.2.3