You don't have to worry about securely reaching your Homey Self-Hosted Server in- and outside your home. Everything is managed for you automatically.
However, if you prefer setting up custom domain names for your homelab services, such as plex.myhomelab.com and homey.myhomelab.com, this guide will show you how.
Requirements
- A reverse proxy with HTTPS, such as Nginx Proxy Manager or Traefik.
- Homey Self-Hosted Server already set up.
Configuring the Custom Domain
1. Setting up the Reverse Proxy
In your reverse proxy, point to http://<ip-of-homey>:4859. Please refer to your reverse proxy's manual on how to configure this.
Make sure that the reverse proxy issues a certificate, that it listens on port 443 (HTTPS), and that WebSocket support is enabled.
2. Configuring the Custom Domain
Visit My Self-Hosted Servers on the Homey website, and find your Self-Hosted Server. Click the Three dots (⋯) and select Edit Custom Domain.
In the dialog that appears, type your custom domain. For example, homey.myhomelab.com.
Click Save Custom Domain. Your custom domain will now be validated if your Homey Self-Hosted Server can be reached at that address. So you know for sure that if it's saved, it's working.
To unset your custom domain, open the dialog again and click Unset Custom Domain.
3. All done
From now on, your custom domain will be prefered when the Homey app for iOS, Android, Web and other integrations will try to reach your Homey Self-Hosted Server.