Allow overriding DNS server. Set DNS if internal docker host is being shared

This commit is contained in:
Marcel Pociot
2021-03-02 16:39:51 +01:00
parent 986428fe00
commit 5c141986fe
4 changed files with 23 additions and 3 deletions

View File

@@ -142,7 +142,7 @@ class Factory
config()->set('expose.dashboard_port', $dashboardPort);
$this->app = new App('127.0.0.1', $dashboardPort, '0.0.0.0', $this->loop);
$this->app = new App('0.0.0.0', $dashboardPort, '0.0.0.0', $this->loop);
$this->addRoutes();

View File

@@ -66,7 +66,7 @@ class HttpClient
protected function createConnector(): Connector
{
return new Connector($this->loop, [
'dns' => '127.0.0.1',
'dns' => config('expose.dns', '127.0.0.1'),
'tls' => [
'verify_peer' => false,
'verify_peer_name' => false,