You’ll essentially need to reconfigure the following settings: https://github.com/mozilla-iot/gateway/blob/master/config/default.js#L61-L68
You can do this in your ~/.mozilla-iot/config/local.json
file, i.e.
{
"ssltunnel": {
"registration_endpoint": "https://myserver.com"
}
}