diff options
| -rw-r--r-- | bragi.nix | 9 | ||||
| -rw-r--r-- | custom/ymir-nginx.nix | 6 |
2 files changed, 3 insertions, 12 deletions
| @@ -371,22 +371,17 @@ in rec { | |||
| 371 | server_name _; | 371 | server_name _; |
| 372 | 372 | ||
| 373 | location /thermoprint/api/ { | 373 | location /thermoprint/api/ { |
| 374 | proxy_pass http://[::1]:8080/; | 374 | proxy_pass http://[::1]:8080; |
| 375 | proxy_http_version 1.1; | 375 | proxy_http_version 1.1; |
| 376 | proxy_set_header Upgrade $http_upgrade; | 376 | proxy_set_header Upgrade $http_upgrade; |
| 377 | proxy_set_header Connection "upgrade"; | 377 | proxy_set_header Connection "upgrade"; |
| 378 | } | 378 | } |
| 379 | 379 | ||
| 380 | location /thermoprint/ { | 380 | location /thermoprint/ { |
| 381 | proxy_pass http://localhost:8081/; | 381 | proxy_pass http://localhost:8081; |
| 382 | } | 382 | } |
| 383 | 383 | ||
| 384 | location /bar/ { | 384 | location /bar/ { |
| 385 | proxy_set_header AppRoot "http://$host/bar"; | ||
| 386 | proxy_pass http://[::1]:8082/; | ||
| 387 | } | ||
| 388 | |||
| 389 | location /bar.ymir/ { | ||
| 390 | proxy_pass http://[::1]:8082; | 385 | proxy_pass http://[::1]:8082; |
| 391 | } | 386 | } |
| 392 | } | 387 | } |
diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix index b2ab4b69..2639cf07 100644 --- a/custom/ymir-nginx.nix +++ b/custom/ymir-nginx.nix | |||
| @@ -160,11 +160,7 @@ in { | |||
| 160 | auth_basic "Reverse proxy to bragi"; | 160 | auth_basic "Reverse proxy to bragi"; |
| 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 | } | ||
| 168 | } | 164 | } |
| 169 | } | 165 | } |
| 170 | ''; | 166 | ''; |
