I would be hesitant to modify the GL.iNet source code because it may break when there is new firmware and/or package updates.

I think you may be able to edit the export config file that is generated and replace the Endpoint value with your domain name afterwards.