deployment: Minor fix to elasticsearch redirections

pull/630/head
cruizba 2021-05-11 14:42:04 +02:00
parent 390aca598b
commit 7a4435dd51
1 changed files with 12 additions and 11 deletions

View File

@ -14,10 +14,6 @@
proxy_pass http://openviduserver; proxy_pass http://openviduserver;
} }
location ~ /openvidu$ {
proxy_pass http://openviduserver;
}
location /kibana { location /kibana {
{rules_access_dashboard} {rules_access_dashboard}
deny all; deny all;
@ -27,17 +23,22 @@
} }
location ~ ^/openvidu/elasticsearch$ { location ~ ^/openvidu/elasticsearch$ {
{rules_access_dashboard} allow all;
deny all;
rewrite ^/openvidu/elasticsearch$ / break;
proxy_pass http://elasticsearch;
}
location ~ ^/openvidu/elasticsearch/.*$ {
allow all;
deny all; deny all;
rewrite ^/openvidu/elasticsearch(.*)$ $1 break; rewrite ^/openvidu/elasticsearch(.*)$ $1 break;
proxy_pass http://elasticsearch; proxy_pass http://elasticsearch;
} }
location /openvidu/elasticsearch/ { location ~ /openvidu$ {
{rules_access_dashboard} proxy_pass http://openviduserver;
deny all;
rewrite ^/openvidu/elasticsearch/(.*)$ /$1 break;
proxy_pass http://elasticsearch;
} }