aboutsummaryrefslogtreecommitdiffstats
path: root/installation/sdnc-web/src/main/resources/location.rules
blob: 8f1f527f48c984a6cb27cc0f24831162d1163edd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
location ~ ^/$  {
    return 301 " /odlux/index.html";
}
location ~ ^/help/$  {
    try_files /help/$args.json $uri;
}
location ~ ^/transportpce  {
    resolver DNS_INTERNAL_RESOLVER;
    if ($request_uri ~* "/transportpce/(.*)") { 
        proxy_pass TRPCEURL/$1;
    }
}
location ~ ^/tiles/  {
    resolver DNS_RESOLVER;
    if ($request_uri ~* "/tiles/(.*)") { 
        proxy_pass TILEURL/$1;
    }
}
location /  {
    try_files $uri $uri/ @backend;
}
location /websocket {
    proxy_pass http://SDNRHOST:SDNRWEBSOCKETPORT/websocket;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
}
location @backend {
    proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT;
}