I have a Python app deployed to IBM Cloud Code Engine. The app needs to determine its external URL for some security configuration. How can I obtain the app URL from the environment?
I looked at the list of injected environment variables, but could not find anything.
We just recently added some new environment variables to help with this. Depending on which region you're in they should be available today, but worst case by next week.
The new env vars you want to look for are:
So the full URL would be: https://${CE_APP}.${CE_SUBDOMAIN}.${CE_DOMAIN}
If you happen to be using JOBS then there's: