Where to set frontend_url?

When I create a user, the email that is generated has this line:

You find the CRM here: {config.frontend_url}

I cannot figure out where to set that value. I have tried multiple places but no luck so far.

You may set the value in config.php.
$sugar_config['frontend_url'] = 'http://localhost/spicecrm/';

setting spicecrm/backend/config.php to
// created: 2018-12-24 22:10:03
$sugar_config = array (

‘frontend_url’ => ‘http://mydomain.com/’,

did not work.
I added $sugar_config[‘frontend_url’] = ‘http://mydomain.com/’; to the end of config.php

I tried spicecrm/backend/config_override.php to
$sugar_config[‘frontend_url’] = ‘http://mydomain.com/’;

nothing works

Do you work with UI or with standard backend?
System E-Mail-Templates logic was reviewed for SpiceCRM 2019.01.001 coming up this month. I would therefore wait for the release.

I added the line:

        $htmlBody = str_replace( '{config.frontend_url}', $sugar_config['frontend_url'], $htmlBody );

to spicecrm/backend/modules/Users/User.php with the rest of the variable replacement (right after // Bug 36833). I forget the line number.

Hopefully will be addressed in the next release.

edit: Thought about just altering the email template directly as an alternate fix but wanted to keep the URL as a variable in case we needed to change something. It is easier to keep track of the changes to the config.php and config_override.php files.