mirror of
https://github.com/klokantech/tileserver-php.git
synced 2025-08-18 04:11:39 +02:00
Get config from docker volumes if is provided
This commit is contained in:
@@ -62,7 +62,10 @@ class Server {
|
|||||||
* Set config
|
* Set config
|
||||||
*/
|
*/
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
$this->config = $GLOBALS['config'];
|
//Get config from docker volumes
|
||||||
|
$envConfig = $_ENV['config'] == null ? array() : $_ENV['config'];
|
||||||
|
|
||||||
|
$this->config = array_merge($GLOBALS['config'], $envConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user