mirror of
https://github.com/cytopia/devilbox.git
synced 2025-04-16 23:19:00 +00:00
#10 - Make TLD suffix more configurable
This commit is contained in:
parent
e0e9c695b5
commit
98346d6f10
@ -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
|
||||
//
|
||||
|
@ -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'];
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user