It would be very helpful if there was a way to change the ROOT_URL in the CryoSPARC webapp. This would allow CryoSPARC to be easily served with Open OnDemand in an HPC setting. Right now all the Open OnDemand solutions rely on a NoVNC connection (AFAIK). This means users interact with CryoSPARC inside a web-browser inside of a virtual desktop inside of their local web-browser. It’s not a great user experience. However, if it were possible to change the ROOT_URL of the CryoSPARC webapp, it could be served directly to users’ local browser tab seamlessly through Open OnDemand.
[user@computer web.browser]$ grep -oh -e '\"\/[^\"]*\"' 50592286c5f5542d035fd46578678e310bdddf72.js |wc -l 598
Is it possible to change this? It would be really stellar if users could define a
ROOT_URL environment variable in the
cryosparcm. I will note that
ROOT_URL is already set in
[program:webapp] command=%(ENV_CRYOSPARC_ROOT_DIR)s/cryosparc_webapp/nodejs/bin/node ./bundle/main.js directory=%(ENV_CRYOSPARC_ROOT_DIR)s/cryosparc_webapp autostart=false autorestart=true redirect_stderr=true stdout_logfile=%(ENV_CRYOSPARC_ROOT_DIR)s/run/webapp.log environment=MONGO_URL="mongodb://%(ENV_CRYOSPARC_MASTER_HOSTNAME)s:%(ENV_CRYOSPARC_MONGO_PORT)s/meteor",MONGO_OPLOG_URL="mongodb://%(ENV_CRYOSPARC_MASTER_HOSTNAME)s:%(ENV_CRYOSPARC_MONGO_PORT)s/local",PORT="%(ENV_CRYOSPARC_HTTP_PORT)s",HTTP_FORWARDED_COUNT="1",ROOT_URL="http://%(ENV_CRYOSPARC_MASTER_HOSTNAME)s:%(ENV_CRYOSPARC_HTTP_PORT)s",NODE_OPTIONS="--max-old-space-size=8192"
However, when I changed it, the sub-URI did not propagate to all the paths in the webapp.