From 28ee671a588a5b6188d0766239b0d4ea90330b52 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 14 Mar 2020 16:47:34 +0100 Subject: ... --- odin.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/odin.nix b/odin.nix index 1ae5d26c..c6d6de1d 100644 --- a/odin.nix +++ b/odin.nix @@ -479,12 +479,12 @@ ''; }; - # services.bar = { - # enable = true; - # port = 8082; - # approot = "/bar"; - # ipFromHeader = true; - # }; + services.bar = { + enable = true; + port = 8082; + approot = "/bar"; + ipFromHeader = true; + }; services.nginx = { enable = true; @@ -501,7 +501,7 @@ sslCertificateKey = "/var/lib/ssl/self-signed-key.pem"; locations = { - # "/bar".proxyPass = "http://bar/"; + "/bar".proxyPass = "http://bar/"; "/" = { root = "/srv/media/"; extraConfig = '' @@ -525,9 +525,9 @@ }; upstreams = { - # "bar" = { - # servers."localhost:${toString config.services.bar.port}"= {}; - # }; + "bar" = { + servers."localhost:${toString config.services.bar.port}"= {}; + }; "prometheus" = { servers."${config.services.prometheus2.listenAddress}" = {}; }; -- cgit v1.2.3