From 4dfabd555d669885b09f63d83b5bfb2a41bb2466 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 16 Mar 2017 15:03:15 +0100 Subject: AppRoot --- bragi.nix | 4 ++++ custom/ymir-nginx.nix | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/bragi.nix b/bragi.nix index c3658995..93e459c5 100644 --- a/bragi.nix +++ b/bragi.nix @@ -385,6 +385,10 @@ in rec { proxy_set_header AppRoot "http://$host/bar"; proxy_pass http://[::1]:8082/; } + + location /bar.ymir/ { + proxy_pass http://[::1]:8082; + } } ''; }; diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix index 94e6f1ed..b2ab4b69 100644 --- a/custom/ymir-nginx.nix +++ b/custom/ymir-nginx.nix @@ -161,6 +161,10 @@ in { auth_basic_user_file /srv/www/bragi/htpasswd; proxy_pass http://bragi.asgard.yggdrasil/; + + location /bar { + proxy_set_header AppRoot "https://$host/bar.ymir"; + } } } ''; -- cgit v1.2.3