Fixes #844 Allow to globally enable/disable HTTP/2

This commit is contained in:
cytopia 2022-03-18 13:10:12 +01:00
parent 1bb408f16b
commit 81d2f7d02b
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
2 changed files with 18 additions and 1 deletions

View File

@ -220,7 +220,7 @@ services:
# Web Server
# ------------------------------------------------------------
httpd:
image: devilbox/${HTTPD_SERVER}:0.40
image: devilbox/${HTTPD_SERVER}:0.43
hostname: httpd
environment:
@ -249,6 +249,11 @@ services:
- WORKER_PROCESSES=${HTTPD_NGINX_WORKER_PROCESSES:-auto}
- WORKER_CONNECTIONS=${HTTPD_NGINX_WORKER_CONNECTIONS:-1024}
##
## Globally enable/disable HTTP/2
##
- HTTP2_ENABLE=${HTTPD_HTTP2_ENABLE:-1}
##
## Disable default vhost?
##

View File

@ -558,6 +558,18 @@ HOST_PORT_HTTPD=80
HOST_PORT_HTTPD_SSL=443
###
### Globally enable/disable HTTP/2 support
###
### This cannot be done on a per vhost level and must be enabled/disabled globally.
###
### Values:
### * 0: HTTP/2 is disabled
### * 1: HTTP/2 is enabled
###
HTTPD_HTTP2_ENABLE=1
###
### SSL (HTTP/HTTPS) settings for automated vhost generation
###