Skip to content

Commit

Permalink
Update nginx.conf.gtpl to suppress: 'listen ... http2' directive is d…
Browse files Browse the repository at this point in the history
…eprecated (#3804)
  • Loading branch information
RonnieDilli authored Nov 11, 2024
1 parent 3c20eb0 commit 7678e87
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 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.11.1

- Update to new nginx http2 directive. This also suppress a deprecation warning.

## 3.11.0

- Update Alpine Linux to 3.20 (nginx 1.26.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.11.0
version: 3.11.1
hassio_api: true
slug: nginx_proxy
name: NGINX Home Assistant SSL proxy
Expand Down
9 changes: 6 additions & 3 deletions nginx_proxy/rootfs/etc/nginx/nginx.conf.gtpl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ http {
server {
server_name _;
listen 80 default_server;
listen 443 ssl http2 default_server;
listen 443 ssl default_server;
http2 on;
ssl_reject_handshake on;
return 444;
}
Expand All @@ -60,9 +61,11 @@ http {
ssl_dhparam /data/dhparams.pem;
{{- if not .options.real_ip_from }}
listen 443 ssl http2;
listen 443 ssl;
http2 on;
{{- else }}
listen 443 ssl http2 proxy_protocol;
listen 443 ssl proxy_protocol;
http2 on;
{{- range .options.real_ip_from }}
set_real_ip_from {{.}};
{{- end }}
Expand Down

0 comments on commit 7678e87

Please sign in to comment.