server {
    listen        80;
    server_name   app.remotely.one *.app.remotely.one;
    location / {
        proxy_pass         http://localhost:5000;
        proxy_http_version 1.1;
        proxy_set_header   Upgrade $http_upgrade;
        proxy_set_header   Connection keep-alive;
        proxy_set_header   Host $host;
        proxy_cache_bypass $http_upgrade;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Proto $scheme;
    }
    location /_blazor {	
        proxy_pass http://localhost:5000;	
        proxy_http_version 1.1;	
        proxy_set_header Upgrade $http_upgrade;	
        proxy_set_header Connection "upgrade";	
        proxy_set_header Host $host;	
        proxy_cache_bypass $http_upgrade;	
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;	
        proxy_set_header   X-Forwarded-Proto $scheme;	
    }	
    location /AgentHub {	
        proxy_pass http://localhost:5000;	
        proxy_http_version 1.1;	
        proxy_set_header Upgrade $http_upgrade;	
        proxy_set_header Connection "upgrade";	
        proxy_set_header Host $host;	
        proxy_cache_bypass $http_upgrade;	
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;	
        proxy_set_header   X-Forwarded-Proto $scheme;	
    }	
    location /ViewerHub {	
        proxy_pass http://localhost:5000;	
        proxy_http_version 1.1;	
        proxy_set_header Upgrade $http_upgrade;	
        proxy_set_header Connection "upgrade";	
        proxy_set_header Host $host;	
        proxy_cache_bypass $http_upgrade;	
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;	
        proxy_set_header   X-Forwarded-Proto $scheme;	
    }	
    location /CasterHub {	
        proxy_pass http://localhost:5000;	
        proxy_http_version 1.1;	
        proxy_set_header Upgrade $http_upgrade;	
        proxy_set_header Connection "upgrade";	
        proxy_set_header Host $host;	
        proxy_cache_bypass $http_upgrade;	
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;	
        proxy_set_header   X-Forwarded-Proto $scheme;	
    }
}