mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 16:40:05 +01:00
Fix DnsMasq path, remove incorrect use of rewrite secure
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@
|
|||||||
vendor/
|
vendor/
|
||||||
composer.lock
|
composer.lock
|
||||||
error.log
|
error.log
|
||||||
|
.idea
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ class Configuration
|
|||||||
/**
|
/**
|
||||||
* Create a new Valet configuration class instance.
|
* Create a new Valet configuration class instance.
|
||||||
*
|
*
|
||||||
* @param Filesystem $filesystem
|
* @param Filesystem $files
|
||||||
*/
|
*/
|
||||||
function __construct(Filesystem $files)
|
function __construct(Filesystem $files)
|
||||||
{
|
{
|
||||||
@@ -47,7 +47,6 @@ function createConfigurationDirectory()
|
|||||||
|
|
||||||
if ($this->files->isDir($oldPath)) {
|
if ($this->files->isDir($oldPath)) {
|
||||||
rename($oldPath, VALET_HOME_PATH);
|
rename($oldPath, VALET_HOME_PATH);
|
||||||
Nginx::rewriteSecureNginxFiles();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -87,6 +87,9 @@ function copyExampleConfig()
|
|||||||
*/
|
*/
|
||||||
function appendCustomConfigImport($customConfigPath)
|
function appendCustomConfigImport($customConfigPath)
|
||||||
{
|
{
|
||||||
|
$contents = preg_replace('/^conf-file=.*\/\.valet\/.*$/m', '', $this->files->get($this->configPath));
|
||||||
|
$this->files->putAsUser($this->configPath, $contents);
|
||||||
|
|
||||||
if (! $this->customConfigIsBeingImported($customConfigPath)) {
|
if (! $this->customConfigIsBeingImported($customConfigPath)) {
|
||||||
$this->files->appendAsUser(
|
$this->files->appendAsUser(
|
||||||
$this->configPath,
|
$this->configPath,
|
||||||
|
|||||||
Reference in New Issue
Block a user