OSC / nginx_stage

[MOVED] Stages & controls the per-user NGINX environment
https://github.com/OSC/ondemand/tree/master/nginx_stage
MIT License
0 stars 1 forks source link

Make OnDemand version available to apps #36

Closed nickjer closed 6 years ago

nickjer commented 6 years ago

It would be beneficial to apps if they could read the version of the currently installed OnDemand. One suggestion was to read the version number from /opt/ood/VERSION (if available) and set it as the environment variable ONDEMAND_VERSION.

This environment variable can be set in the NGINX pun configuration file similar to how we set USER. We should also make the path of the file that contains the version number configurable.