Nginx configuration

server{listen2222;server_namelocalhost;location/{proxy_set_headerX-Forwarded-Host$http_host;proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;proxy_set_headerX-Forwarded-Proto$scheme;proxy_http_version1.1;# to proxy WebSockets in nginxproxy_set_headerUpgrade$http_upgrade;proxy_set_headerConnection"upgrade";proxy_passhttp://upsourcemachine.domain.local:1111/;}}

where:

listen 2222 is the port that you have previously specified as a --base-url parameter

proxy_pass http://upsourcemachine.domain.local:1111/ is the path to your Upsource machine with the port that you have previously specified using the -–listen-port command

server{listen443ssl;ssl_certificate<path_to_certificate>ssl_certificate_key<path_to_key>server_namelocalhost;location/{proxy_set_headerX-Forwarded-Host$http_host;proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;proxy_set_headerX-Forwarded-Proto$scheme;proxy_http_version1.1;# to proxy WebSockets in nginxproxy_set_headerUpgrade$http_upgrade;proxy_set_headerConnection"upgrade";proxy_passhttp://upsourcemachine.domain.local:1111/;}}