mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
apache: Enable and prioritize HTTP/2 protocol
- Enabling the module automatically sets 'Protocols h2 h2c http/1.1' in shipped module configuration. - HTTP/2 is given higher priority over HTTP/1.1 for supported clients. - Clients not supporting HTTP/2 continue to work with HTTP/1.1. - Clients work by using APLN extension in TLS to figure out that server supports HTTP/2 and use it. - HTTP/2 improves performance. - Recommended by Mozilla's SSL configurator: https://ssl-config.mozilla.org/. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
e8c4e732ea
commit
857ab0afe1
@ -126,6 +126,9 @@ def subcommand_setup(arguments):
|
||||
# Disable /server-status page to avoid leaking private info.
|
||||
webserver.disable('status', kind='module')
|
||||
|
||||
# Enable HTTP/2 protocol
|
||||
webserver.enable('http2', kind='module')
|
||||
|
||||
# switch to mod_ssl from mod_gnutls
|
||||
webserver.disable('gnutls', kind='module')
|
||||
webserver.enable('ssl', kind='module')
|
||||
|
||||
@ -14,7 +14,7 @@ from plinth.modules.firewall.components import Firewall
|
||||
from plinth.modules.letsencrypt.components import LetsEncrypt
|
||||
from plinth.utils import format_lazy, is_valid_user_name
|
||||
|
||||
version = 8
|
||||
version = 9
|
||||
|
||||
is_essential = True
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user