diff options
-rw-r--r-- | bragi.nix | 6 | ||||
-rw-r--r-- | custom/ymir-nginx.nix | 5 |
2 files changed, 5 insertions, 6 deletions
@@ -382,12 +382,8 @@ in rec { | |||
382 | } | 382 | } |
383 | 383 | ||
384 | location /bar/ { | 384 | location /bar/ { |
385 | map $http_AppRoot $approot { | ||
386 | default $http_AppRoot; | ||
387 | ''' $host/bar; | ||
388 | } | ||
389 | proxy_pass http://[::1]:8082; | 385 | proxy_pass http://[::1]:8082; |
390 | proxy_set_header AppRoot $approot; | 386 | proxy_set_header AppRoot $host/bar; |
391 | } | 387 | } |
392 | } | 388 | } |
393 | ''; | 389 | ''; |
diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix index 3953176f..bf0c8e67 100644 --- a/custom/ymir-nginx.nix +++ b/custom/ymir-nginx.nix | |||
@@ -161,7 +161,10 @@ in { | |||
161 | auth_basic_user_file /srv/www/bragi/htpasswd; | 161 | auth_basic_user_file /srv/www/bragi/htpasswd; |
162 | 162 | ||
163 | proxy_pass http://bragi.asgard.yggdrasil; | 163 | proxy_pass http://bragi.asgard.yggdrasil; |
164 | proxy_set_header AppRoot $host; | 164 | |
165 | location /bar/ { | ||
166 | proxy_set_header AppRoot $host/bar; | ||
167 | } | ||
165 | } | 168 | } |
166 | } | 169 | } |
167 | ''; | 170 | ''; |