#10 - Make TLD suffix more configurable

This commit is contained in:
cytopia 2016-11-06 13:57:05 +01:00
parent e0e9c695b5
commit 98346d6f10
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
2 changed files with 15 additions and 0 deletions

View File

@ -16,6 +16,17 @@ $VEN_DIR = $INCL_DIR . DIRECTORY_SEPARATOR . 'include';
$LOG_DIR = dirname(dirname($CONF_DIR)) . DIRECTORY_SEPARATOR . 'log' . DIRECTORY_SEPARATOR . 'devilbox';
/**
* TLD suffix for mass virtual hosts.
*
* This is currently hardcoded and must be changed here
* as well as in the webserver config.
* @var string
*/
$TLD_SUFFIX = 'loc';
//
// Set Docker addresses
//

View File

@ -84,6 +84,10 @@ class Docker
$this->_env[$tmp[0]] = $tmp[1];
}
// Set the TLD suffix (domain ending) for virtual hosts
// Note: If this is changed it currently also needs to be changed
// in each webserver's configuration file in .devilbox/<webserver>/02-vhost-mass.conf
$this->_tld = $GLOBALS['TLD_SUFFIX'];
}