bench icon indicating copy to clipboard operation
bench copied to clipboard

Offer HTTP/2 config by default for Nginx

Open joolsr opened this issue 7 years ago • 1 comments

As Bench is normally used to set up a Frappe site (normally using ERPNext) I think it should be considered that the Nginx config should be tweaked to support http/2 out of the box.

The changes are small. The only tweak with Nginx necessary is to the site config where in the server block that :- http2 and ssl are included on the listen line. That's it. Even though Frappe is super fast anyway, it did make an identifiable benefit in speed for me. Perhaps it could be an option that could be enabled/disabled in the bench setup instead of enabled by default. Even if the clients browsers do not support it it reverts to http/1.1 so no loss there.

ie

server { listen 443 http2 ssl; server_name test.faster.com ;

joolsr avatar Oct 12 '17 16:10 joolsr

Yes, HTTP/2 should be now Out of The Box! :)

felixd avatar Dec 28 '22 15:12 felixd