diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-16 15:03:15 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-16 15:03:15 +0100 |
| commit | 4dfabd555d669885b09f63d83b5bfb2a41bb2466 (patch) | |
| tree | 4868bf9ac1fa196b77bba98c9087d54f64c0450c | |
| parent | f8d69428cd1d512247bb7fb3296b0833f23687fa (diff) | |
| download | nixos-4dfabd555d669885b09f63d83b5bfb2a41bb2466.tar nixos-4dfabd555d669885b09f63d83b5bfb2a41bb2466.tar.gz nixos-4dfabd555d669885b09f63d83b5bfb2a41bb2466.tar.bz2 nixos-4dfabd555d669885b09f63d83b5bfb2a41bb2466.tar.xz nixos-4dfabd555d669885b09f63d83b5bfb2a41bb2466.zip | |
AppRoot
| -rw-r--r-- | bragi.nix | 4 | ||||
| -rw-r--r-- | custom/ymir-nginx.nix | 4 |
2 files changed, 8 insertions, 0 deletions
| @@ -385,6 +385,10 @@ in rec { | |||
| 385 | proxy_set_header AppRoot "http://$host/bar"; | 385 | proxy_set_header AppRoot "http://$host/bar"; |
| 386 | proxy_pass http://[::1]:8082/; | 386 | proxy_pass http://[::1]:8082/; |
| 387 | } | 387 | } |
| 388 | |||
| 389 | location /bar.ymir/ { | ||
| 390 | proxy_pass http://[::1]:8082; | ||
| 391 | } | ||
| 388 | } | 392 | } |
| 389 | ''; | 393 | ''; |
| 390 | }; | 394 | }; |
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 { | |||
| 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 | |||
| 165 | location /bar { | ||
| 166 | proxy_set_header AppRoot "https://$host/bar.ymir"; | ||
| 167 | } | ||
| 164 | } | 168 | } |
| 165 | } | 169 | } |
| 166 | ''; | 170 | ''; |
