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

Fixes issue #3791
-----
Changed this:
listen 443 ssl http2;

To this:
listen 443 ssl;
http2 on;
-----
Source: https://www.nginx.com/blog/nginx-plus-r30-released/#Important-Changes-in-Behavior-
  • Loading branch information
RonnieDilli authored Oct 18, 2024
1 parent 3f21e06 commit 36049ff
Showing 1 changed file with 6 additions and 3 deletions.
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 36049ff

Please sign in to comment.