Hey @Glen_Baars glad you were able to use config variables to set the hostname. To reference configuration variables, you can use syntax like this, where the NAME should be replaced with your configuration variable name:
{{ retoolContext.configVars.NAME }}
And you could use some JavaScript to set the value of a config variable to something else.
Some potentially related docs and forum posts in case useful: