nginx Configuration

map $http_upgrade $connection_upgrade {
            default upgrade;
            ''      close;
}

location /api/ {
	proxy_pass http://127.0.0.1:32769;
	rewrite ^/api/?(.*) /$1 break;
}

location /auth {
	proxy_pass http://127.0.0.1:32769;
	proxy_set_header Host            $host:$server_port;
	proxy_set_header X-Forwarded-For $remote_addr;
	proxy_set_header X-Forwarded-Proto $scheme;
}

location /NotificationService {
	proxy_pass http://127.0.0.1:3000;
        proxy_http_version 1.1;
        proxy_read_timeout 1800s;
         proxy_set_header Upgrade $http_upgrade;
         proxy_set_header Connection "upgrade";
}