42 lines
842 B
Plaintext
42 lines
842 B
Plaintext
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
upstream websocket {
|
|
server angular-dev:4200;
|
|
}
|
|
|
|
|
|
server {
|
|
listen $NGINX_PORT default_server;
|
|
listen [::]:$NGINX_PORT default_server;
|
|
|
|
root /var/www/html;
|
|
|
|
index index.html index.htm index.nginx-debian.html;
|
|
|
|
server_name _;
|
|
|
|
location /proxy/ {
|
|
proxy_pass http://is-manager:$SPRING_BOOT_PORT/proxy/;
|
|
}
|
|
|
|
location /ajax-is/ {
|
|
proxy_pass http://is-manager:$SPRING_BOOT_PORT/ajax-is/;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://angular-dev:4200/;
|
|
}
|
|
|
|
location /ng-cli-ws {
|
|
proxy_pass http://websocket/ng-cli-ws;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
}
|