Skip to content

Commit

Permalink
nginx_proxy: Fix issue home-assistant#3132 (home-assistant#3356)
Browse files Browse the repository at this point in the history
  • Loading branch information
mancontr authored Dec 14, 2023
1 parent fe93b31 commit 9348869
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions nginx_proxy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.6.0

- Add port to Host header to fix origin issues affecting ESPHome and other addons

## 3.5.0

- Update Alpine to 3.18 (nginx 1.24.x)
Expand Down
2 changes: 1 addition & 1 deletion nginx_proxy/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 3.5.0
version: 3.6.0
hassio_api: true
slug: nginx_proxy
name: NGINX Home Assistant SSL proxy
Expand Down
2 changes: 1 addition & 1 deletion nginx_proxy/rootfs/etc/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ http {

location / {
proxy_pass http://homeassistant.local.hass.io:%%HA_PORT%%;
proxy_set_header Host $host;
proxy_set_header Host $http_host;
proxy_redirect http:// https://;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand Down

0 comments on commit 9348869

Please sign in to comment.