[PR #423] Enable HTTP/2 when loading SSL cert from a file #2747

Open
opened 2025-11-20 08:03:51 -05:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/netbirdio/netbird/pull/423

State: closed
Merged: Yes


When creating TLSConfig from provided certificate file, the HTTP/2 support is not enabled.
It works with Certmanager because it adds h2 support.
We can enable it the same way when creating TLSConfig from files:

NextProtos: []string{
  "h2", "http/1.1", // enable HTTP/2
},

Thanks to @kid-alan for pointing out the issue in https://github.com/netbirdio/netbird/issues/422

**Original Pull Request:** https://github.com/netbirdio/netbird/pull/423 **State:** closed **Merged:** Yes --- When creating TLSConfig from provided certificate file, the HTTP/2 support is not enabled. It works with Certmanager because it adds h2 support. We can enable it the same way when creating TLSConfig from files: ``` NextProtos: []string{ "h2", "http/1.1", // enable HTTP/2 }, ``` Thanks to @kid-alan for pointing out the issue in https://github.com/netbirdio/netbird/issues/422
saavagebueno added the pull-request label 2025-11-20 08:03:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2747