How to determine external_url within a template?

I’m trying to set a template value based on the external_url set in the config file. Any way to do this? Thanks.

I’m also looking for this.

Found Getting the instance URL | Home Assistant Developer Docs, but I don’t think there’s a way to access the result from a template :thinking: