From f655f88cbbc334ad56a79c2287f18defa5aa98ba Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 14 Mar 2017 02:13:27 +0100 Subject: Force bar to IPv6 --- bragi.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bragi.nix b/bragi.nix index 50608e70..f0817580 100644 --- a/bragi.nix +++ b/bragi.nix @@ -312,6 +312,7 @@ in rec { in { environment = { PORT = "8082"; + HOST = "::1"; }; requires = [ "postgresql.service" ]; wantedBy = [ "default.target" ]; @@ -382,7 +383,7 @@ in rec { location /bar/ { proxy_set_header AppRoot "http://$host/bar"; - proxy_pass http://localhost:8082/; + proxy_pass http://[::1]:8082/; } } ''; -- cgit v1.2.3