tridentli / pitchfork

Golang framework for secure communication platforms.
Apache License 2.0
5 stars 3 forks source link

Enhancement Request: Implement HTTP/2 for Portal #177

Closed cqueern closed 5 years ago

cqueern commented 5 years ago

Background: https://www.nginx.com/blog/http2-theory-and-practice-in-nginx-stable-13/

Recommend that web server config be modified to serve http requests over HTTP/2 by default for better performance for users. Should be a pretty easy upgrade with nginx.

massar commented 5 years ago

While we have: https://github.com/tridentli/trident/blob/master/doc/conf/nginx/trident-server.inc

Currently there is no 'listener' definition. It is thus up to the install to determine these parameters.

As per nginx, simply having:

server {
       listen 443 ssl http2;
       listen [::]:443 ssl http2;

will make a site HTTP/2 enabled.