mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 16:50:09 +01:00
♻️ Refactoring resecureForNew* methods to resecureForNewConfiguration.
This commit is contained in:
@@ -98,7 +98,7 @@ function replaceLoopback($siteConf)
|
||||
return $siteConf;
|
||||
}
|
||||
|
||||
$str = '#listen VALET_LOOPBACK:80 default_server; # valet loopback';
|
||||
$str = '#listen VALET_LOOPBACK:80; # valet loopback';
|
||||
|
||||
return str_replace(
|
||||
$str,
|
||||
@@ -150,8 +150,9 @@ function rewriteSecureNginxFiles()
|
||||
$tld = $this->configuration->read()['tld'];
|
||||
$loopback = $this->configuration->read()['loopback'];
|
||||
|
||||
$this->site->resecureForNewTld($tld, $tld);
|
||||
$this->site->resecureForNewLoopback($loopback, $loopback);
|
||||
$config = compact('tld', 'loopback');
|
||||
|
||||
$this->site->resecureForNewConfiguration($config, $config);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user