diff options
Diffstat (limited to 'bragi.nix')
-rw-r--r-- | bragi.nix | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -382,8 +382,12 @@ 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 | } | ||
385 | proxy_pass http://[::1]:8082; | 389 | proxy_pass http://[::1]:8082; |
386 | proxy_set_header Host $host; | 390 | proxy_set_header AppRoot $approot; |
387 | } | 391 | } |
388 | } | 392 | } |
389 | ''; | 393 | ''; |