From 3af8c1ec0fb5a713c1d9bc1fd3e078dc280f90ce Mon Sep 17 00:00:00 2001 From: Joseph Richardson Date: Tue, 2 Apr 2024 17:45:07 -0400 Subject: [PATCH] Secure the proxies created for valet plus services This will create the proxy for elasticsearch and mailhog with secure certificates to ensure they work best. --- cli/ValetPlus/Elasticsearch.php | 2 +- cli/ValetPlus/Mailhog.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/ValetPlus/Elasticsearch.php b/cli/ValetPlus/Elasticsearch.php index b2348b49..2af5caf0 100644 --- a/cli/ValetPlus/Elasticsearch.php +++ b/cli/ValetPlus/Elasticsearch.php @@ -246,7 +246,7 @@ public function install($version = self::ES_DEFAULT_VERSION, $tld = 'test') } $this->restart($version); - $this->site->proxyCreate('elasticsearch', 'http://127.0.0.1:9200'); + $this->site->proxyCreate('elasticsearch', 'http://127.0.0.1:9200', true); } /** diff --git a/cli/ValetPlus/Mailhog.php b/cli/ValetPlus/Mailhog.php index aa5646eb..85772221 100644 --- a/cli/ValetPlus/Mailhog.php +++ b/cli/ValetPlus/Mailhog.php @@ -72,7 +72,7 @@ public function register() public function install(string $tld = 'test'): void { $this->brew->ensureInstalled(static::SERVICE_NAME); - $this->site->proxyCreate('mailhog', 'http://127.0.0.1:8025'); + $this->site->proxyCreate('mailhog', 'http://127.0.0.1:8025', true); $this->setEnabled(static::STATE_ENABLED); $this->restart(); }