| @@ -14,6 +14,30 @@ server { | |||||
| add_header Cache-Control "no-store"; | add_header Cache-Control "no-store"; | ||||
| } | } | ||||
| location = /simulator { | |||||
| return 301 /simulator/; | |||||
| } | |||||
| location ^~ /simulator/ { | |||||
| proxy_pass http://emp-ws:3000/simulator/; | |||||
| proxy_http_version 1.1; | |||||
| proxy_set_header Host $host; | |||||
| proxy_set_header X-Real-IP $remote_addr; | |||||
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |||||
| proxy_set_header X-Forwarded-Proto $scheme; | |||||
| proxy_read_timeout 300s; | |||||
| } | |||||
| location ^~ /api/simulator/ { | |||||
| proxy_pass http://emp-ws:3000/api/simulator/; | |||||
| proxy_http_version 1.1; | |||||
| proxy_set_header Host $host; | |||||
| proxy_set_header X-Real-IP $remote_addr; | |||||
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |||||
| proxy_set_header X-Forwarded-Proto $scheme; | |||||
| proxy_read_timeout 300s; | |||||
| } | |||||
| location /api/ { | location /api/ { | ||||
| proxy_pass http://emp-gateway:9000/api/; | proxy_pass http://emp-gateway:9000/api/; | ||||
| proxy_http_version 1.1; | proxy_http_version 1.1; | ||||
| @@ -50,4 +74,3 @@ server { | |||||
| try_files $uri =404; | try_files $uri =404; | ||||
| } | } | ||||
| } | } | ||||