While deploying Lucky to Render, [I needed to set
APP_DOMAIN
][1] as the public URL of the deployed app. Render makes this available as
RENDER_EXTERNAL_URL
. As an alternative to changing [the code][2], it would be nice if I could set the value of
APP_DOMAIN
as
${RENDER_EXTERNAL_URL}
.
I could also see an extension of this being useful to those using Redis. They could add two env vars. The first would define an env var, say
REDIS_HOSTPORT
as the
hostport
property from the Redis service running on Render. The second would define
REDIS_URL
as
redis://${REDIS_HOSTPORT}
, adding the scheme to the front converting it to a proper connection string.