-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom hostname not working #2731
Comments
This is an issue with your reverse proxy configuration and unrelated to the "hostname" config option. Setting the host name is not required if you correctly configure nginx. An example config can be found here: |
I am not looking for a way to install the SSL certificate into the homebridge. Thats why I have the the Reverse Proxy. The homebridge should just respond to simple http trafic but for some reason it does not. |
The location block in the example is relevant for both http and https endpoints.
|
I am not getting what you are saying at all I am afraid. Are you telling me to update the homebridge setup or the Reverse Proxy ? |
Your reverse proxy is not working. A 502 means the connection from your reverse proxy to homebridge was never established. A reverse proxy running nginx requires those config options linked above to work fully with Homebridge as these are needed to proxy web socket connections. However since you're getting a 502 - this probably means there is another issue you need to solve with your proxy container first. |
I have homebridge for docker (on Ubuntu) running (v1.2.3).
In the UI Settings > Advanced > Reverse Proxy Hostname
I have set the value to "homebridge.mydomain.com"
In my DNS I have pointed homebridge.mydomain.com to the IP of the dockerserver.
I have ReverseProxy (jwilder/nginx-proxy:latest) running which catches all 443/80 trafic.
The hombridge is configured to be running on port 8082
When I type http://:8082 into the browser it works
When I type https://homebridge.mydomain.com with a port I get a 502 Bad Gateway
What am I missing here ?
The text was updated successfully, but these errors were encountered: