https://job-xxxx.dnanexus.cloudvia an HTTPS proxy which handles all of the necessary authentication. This allows a user to host an unencrypted webapp within a job and rely on the platform to provide access and security.
dxapp.jsonand run a hello-world web server with Docker. Listening on port 443 externally is the worker's HTTPS proxy, which will authenticate the user with DNAnexus and generate a session for the browser.
runningstate, the URL
https://job-xxxx.dnanexus.cloudis created. This URL is accessible once it has propogated to your DNS server (generally within 60 seconds). Below is the source code for an applet running a web server on port 443.
httpsAppis required in the dxapp.json of the applet. This field requires
portsis an array of integers with
8081as allowed values.
shared_accessis a string, with
NONEas possible values. This value restricts access to users with at least the specified access to the project in which the job executes, or to only the launching user if
NONEis set. In this example access is restricted to DNAnexus users with at least VIEW access to the project in which the job executes.
docker. Outbound network access is enabled to pull the image from DockerHub.
502 Bad Gatewayerror. The reason for this is that the application may have not finished setting up dependencies and is not running yet. It could also be configured to listen on an incorrect port.