Skip to content
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

Update nginx.conf.gtpl to suppress: 'listen ... http2' directive is deprecated #3804

Merged
merged 3 commits into from
Nov 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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