Skip to content

[PM-33157] Fix: Deprecated nginx http2 directive in config template#7151

Open
boris324 wants to merge 1 commit intobitwarden:mainfrom
boris324:fix/nginx-http2-deprecation
Open

[PM-33157] Fix: Deprecated nginx http2 directive in config template#7151
boris324 wants to merge 1 commit intobitwarden:mainfrom
boris324:fix/nginx-http2-deprecation

Conversation

@boris324
Copy link

@boris324 boris324 commented Mar 4, 2026

Summary

Test plan

  • Run ./bitwarden.sh rebuild to regenerate nginx config
  • Verify no deprecation warnings in nginx error log
  • Verify HTTP/2 still works for HTTPS connections

The 'listen ... http2' directive has been deprecated since nginx 1.25.1.
Replace with separate 'http2 on;' directive to eliminate deprecation
warnings in nginx error logs.

Before: listen 8443 ssl http2;
After:  listen 8443 ssl;
        http2 on;

Resolves bitwarden#6949
@boris324 boris324 requested review from a team as code owners March 4, 2026 21:26
@boris324 boris324 requested review from dani-garcia and fntyler March 4, 2026 21:26
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@bitwarden-bot
Copy link

Thank you for your contribution! We've added this to our internal tracking system for review.
ID: PM-33157
Link: https://bitwarden.atlassian.net/browse/PM-33157

Details on our contribution process can be found here: https://contributing.bitwarden.com/contributing/pull-requests/community-pr-process.

@bitwarden-bot bitwarden-bot changed the title Fix: Deprecated nginx http2 directive in config template [PM-33157] Fix: Deprecated nginx http2 directive in config template Mar 4, 2026
@djsmith85
Copy link
Contributor

@boris324 Thank you for your contribution 🎉 ! Could you please check to sign the Contributor License agreement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nginx - "listen ... http2" directive is deprecated

4 participants