-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
feat(core) enabled support for HTTP/2 #2541
Conversation
kong/templates/nginx_kong.lua
Outdated
@@ -84,7 +84,7 @@ server { | |||
access_log logs/access.log; | |||
|
|||
> if ssl then | |||
listen ${{PROXY_LISTEN_SSL}} ssl; | |||
listen ${{PROXY_LISTEN_SSL}} ssl http2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets make the http2
options configurable, even if it's enabled by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@p0pr0ck5 what would be the use-case? This is between Client <> Kong, not between Kong <> API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I understand. It may be desirable that Kong operators do not want to expose clients to potential instabilities associated with the h2 implementation in Nginx, documented or otherwise.
New |
While rather stable in Nginx, it isn't in OpenResty, so it makes perfect sense to make this feature configurable. |
@thefosk please remove the |
79b8026
to
fcf5ce1
Compare
bb49027
to
2e4b29f
Compare
@p0pr0ck5 LGTM. |
kong.conf.default
Outdated
@@ -136,6 +136,9 @@ | |||
# the SSL key for the `proxy_listen_ssl` | |||
# address. | |||
|
|||
#http2 = off # Enable HTTP2 support for HTTPS traffic on the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of our other configuration properties use the third person ("Enables")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yep, thanks. Fixed!
To be merged after #2540.
Goes in hand with https://github.com/Mashape/kong-distributions/commit/5ca1bdd67e46587146f6669ae509c867806555dd and Kong/docs.konghq.com#421.
Notes: In NGINX, only HTTP/2 is only supported under
https
.