Skip to content
Snippets Groups Projects
Commit ef5126de authored by Nikolay Stanchev's avatar Nikolay Stanchev
Browse files

Fixes redirect issues with the CLMC nginx.conf

parent 200db90d
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,9 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}
location /clmc-service {
rewrite /clmc-service $scheme://$http_host/clmc-service/ redirect;
}
location /clmc-service/ {
proxy_pass http://127.0.0.1:9080/;
proxy_redirect off;
......@@ -39,6 +42,9 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}
location /influxdb {
rewrite /influxdb $scheme://$http_host/influxdb/ redirect;
}
location /influxdb/ {
proxy_pass http://127.0.0.1:8086/;
proxy_redirect off;
......@@ -47,9 +53,12 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}
location /neo4j {
rewrite /neo4j $scheme://$http_host/neo4j/ redirect;
}
location /neo4j/ {
proxy_pass http://127.0.0.1:7474/;
proxy_redirect off;
proxy_redirect $scheme://$http_host/ $scheme://$http_host/neo4j/; # in case a redirect is returned from server
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment