Render.yaml blueprint internal address environment variable

Hi. I’m trying to use the internal address of a web service in my render.yaml blueprint but the closest I can get is RENDER_EXTERNAL_URL

What can i use for the internal address as displayed above the service with the port? eg:

Screenshot 2022-05-04 at 15.38.29

Hi Sean,

Thanks for reaching out.

As part of a Blueprint, you can use the properties of other services, including to get the internal address, noted here in the docs: https://render.com/docs/blueprint-spec#properties-available-to-environment-variables

I think hostport is what you’re after, e.g.:

...envVars: - key: WEB_SERVICE_INTERNAL_HOST fromService: type: web name: web-service-name property: hostport...

Please let us know if we can assist any further.

Alan

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.