-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[nginx] Websocket upgrade not working for non-standard HTTPS port #2944
Comments
I’m having this issue as well since a recent update. |
I also had this problem after I changed from native HTTPS to nginx, the terminal screens was blank for the esphome addon.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the issue you are experiencing
When using the nginx proxy with a non-standard HTTPS port (e.g., 8135 instead of 443) configured via the port section of the add-on config, websocket upgrade will not work. This causes issues with other add-ons, e.g., deconz or ESPHome (cannot open frontend of former, latter will just show a black frame for actions such as validate).
The problem is that the
proxy_set_header Host
directive does not name a port, and thus the default is being used.The solution would be to make the port configuration accessible in the add-on via bashio (e.g., add it as a section to
options.json
) and use it for a macro such as%%HTTPS_PORT%%
similar to%%HA_PORT%%
.What type of installation are you running?
Home Assistant OS
Which operating system are you running on?
Home Assistant Operating System
Which add-on are you reporting an issue with?
NGINX Home Assistant SSL proxy
What is the version of the add-on?
3.2.0
Steps to reproduce the issue
System Health information
System Information
Home Assistant Community Store
Home Assistant Cloud
redacted
Home Assistant Supervisor
Dashboards
Recorder
Anything in the Supervisor logs that might be useful for us?
Anything in the add-on logs that might be useful for us?
No response
Additional information
A workaround that I'm currently using is to add a file
/share/nginx_proxy_default_fix_ingress.conf
with the following content:(with
<PORT>
replaced by the port configured in the addons configuration ports section).The text was updated successfully, but these errors were encountered: