Skip to content

Commit

Permalink
#10 - Make TLD suffix more configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Nov 6, 2016
1 parent e0e9c69 commit 98346d6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .devilbox/www/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@
$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
//
Expand Down
4 changes: 4 additions & 0 deletions .devilbox/www/include/lib/Docker.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ private function __construct()
$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'];

}

Expand Down

0 comments on commit 98346d6

Please sign in to comment.