REL-0.12 Add directories to globally configure web servers

This commit is contained in:
cytopia 2017-09-26 19:39:38 +02:00
parent 769b34c3e6
commit 9752af1363
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
10 changed files with 95 additions and 0 deletions

6
.gitignore vendored
View File

@ -22,6 +22,12 @@
/data/
/backups/
# Ignore custom HTTPD configs
/cfg/apache-2.2/*.conf
/cfg/apache-2.4/*.conf
/cfg/nginx-stable/*.conf
/cfg/nginx-mainline/*.conf
# Ignore custom MySQL configs
/cfg/mysql-5.5/*.cnf
/cfg/mysql-5.6/*.cnf

0
cfg/apache-2.2/.keepme Normal file
View File

View File

@ -0,0 +1,25 @@
#
# Apache 2.2 configuration overwrites
#
# Make sure this file ends by *.conf, otherwise
# the configuration is not sourced by nginx.
#
# The below settings are just examples.
# Copy them, remove them or reset them.
#
AddDefaultCharset UTF-8
# No DNS
HostnameLookups Off
Timeout 60
KeepAlive On
KeepAliveTimeout 10
MaxKeepAliveRequests 100
EnableMMAP Off
EnableSendfile Off
XSendFile On
XSendFilePath /shared/httpd

0
cfg/apache-2.4/.keepme Normal file
View File

View File

@ -0,0 +1,25 @@
#
# Apache 2.4 configuration overwrites
#
# Make sure this file ends by *.conf, otherwise
# the configuration is not sourced by nginx.
#
# The below settings are just examples.
# Copy them, remove them or reset them.
#
AddDefaultCharset UTF-8
# No DNS
HostnameLookups Off
Timeout 60
KeepAlive On
KeepAliveTimeout 10
MaxKeepAliveRequests 100
EnableMMAP Off
EnableSendfile Off
XSendFile On
XSendFilePath /shared/httpd

View File

View File

@ -0,0 +1,18 @@
#
# Nginx (mainline) configuration overwrites
#
# Make sure this file ends by *.conf, otherwise
# the configuration is not sourced by nginx.
#
# The below settings are just examples.
# Copy them, remove them or reset them.
#
charset utf-8;
send_timeout 60;
keepalive_timeout 10;
sendfile off;
tcp_nopush on;
tcp_nodelay on;

0
cfg/nginx-stable/.keepme Normal file
View File

View File

@ -0,0 +1,18 @@
#
# Nginx (stable) configuration overwrites
#
# Make sure this file ends by *.conf, otherwise
# the configuration is not sourced by nginx.
#
# The below settings are just examples.
# Copy them, remove them or reset them.
#
charset utf-8;
send_timeout 60;
keepalive_timeout 10;
sendfile off;
tcp_nopush on;
tcp_nodelay on;

View File

@ -272,6 +272,9 @@ services:
# Mount custom mass virtual hosting
- ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd
# Mount custom web server config directory
- ${DEVILBOX_PATH}/cfg/${HTTPD_SERVER}:/etc/${HTTPD_SERVER}.d
# Mount logs
- ${DEVILBOX_PATH}/log/${HTTPD_SERVER}:/var/log/${HTTPD_SERVER}