From 6dde59a0afaf9860f61bc068afd5d71fa35bd866 Mon Sep 17 00:00:00 2001 From: do Date: Sat, 21 Nov 2020 10:42:24 +0100 Subject: [PATCH] proper habpanel redirect --- packages/openhab.sls | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/openhab.sls b/packages/openhab.sls index 7c84b82..e29901b 100644 --- a/packages/openhab.sls +++ b/packages/openhab.sls @@ -53,10 +53,10 @@ nginx: - listen: - '80 default_server' - location /: - - return: 301 http://$host/habpanel/index.html#/ - - location ~ ^/(habpanel.*): + - return: 301 http://$host/habpanel/index.html + - location /habpanel/: - proxy_redirect: 'off' - - proxy_pass: http://auto01:8080/$1 + - proxy_pass: http://auto01:8080 - location /rest: - proxy_redirect: 'off' - proxy_pass: http://auto01:8080 @@ -156,4 +156,4 @@ systemd: # name: auto01 # host: 127.0.0.1 # port: 8080 -# check: check \ No newline at end of file +# check: check