mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #2623] [Minor] HTTP/2 support is enabled in proxy_host even when the checkbox is off. #1823
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1823
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Encephala on GitHub (Feb 22, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2623
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
When creating a proxy host with HTTP/2 support disabled, the
listen-directive still looks as follows:listen 443 ssl http2;
I tried to look through the source code, but in the
_listen.conffile, but that does have the{% if http2_support %}-part. so I guess the variablehttp2_supportisn't set properly. I don't quite understand where that variable is set or used in the code (innginx.js?), so I can't submit a PR.Nginx Proxy Manager Version
Version 2.9.19 (specifically, the Docker image that has tag
2).To Reproduce
Steps to reproduce the behavior:
/data/nginx/proxy_host/and note howhttp2is still present in thelistendirective.Expected behavior
http2is not present in the directive.Screenshots
Operating System
Ubuntu 22.04 LTS.
Additional context
@Pcject commented on GitHub (May 8, 2023):
Just replace
/app/templates/_listen.confby :listen 80;
{% if ipv6 -%}
listen [::]:80;
{% else -%}
#listen [::]:80;
{% endif %}
{% if certificate -%}
listen 443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %};
{% if ipv6 -%}
listen [::]:443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %};
{% else -%}
#listen [::]:443;
{% endif %}
{% endif %}
server_name {{ domain_names | join: " " }};
@Encephala commented on GitHub (May 9, 2023):
Looks good (but I haven't tested it), thanks for figuring it out :)
@github-actions[bot] commented on GitHub (Jan 27, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@Encephala commented on GitHub (May 3, 2024):
This has been fixed in #3377