mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 08:30:07 +01:00
Merge pull request #159 from KorvinSzanto/feature/fpm_socket
Use sockets instead of port 9000
This commit is contained in:
@@ -44,6 +44,7 @@ public function install()
|
||||
}
|
||||
|
||||
$this->files->ensureDirExists('/usr/local/var/log', user());
|
||||
$this->files->ensureDirExists('/var/run/valet', user());
|
||||
|
||||
$this->updateConfiguration();
|
||||
|
||||
@@ -61,6 +62,7 @@ public function updateConfiguration()
|
||||
|
||||
$contents = preg_replace('/^user = .+$/m', 'user = '.user(), $contents);
|
||||
$contents = preg_replace('/^group = .+$/m', 'group = staff', $contents);
|
||||
$contents = preg_replace('/^listen = .+$/m', 'listen = /var/run/valet/fpm.socket', $contents);
|
||||
|
||||
$this->files->put($this->fpmConfigPath(), $contents);
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import VALET_HOME_PATH/Caddy/*
|
||||
# Slight hack, see: https://github.com/mholt/caddy/issues/1020
|
||||
internal /dev/null
|
||||
|
||||
fastcgi / 127.0.0.1:9000 php {
|
||||
fastcgi / /var/run/valet/fpm.socket php {
|
||||
index VALET_SERVER_PATH
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ https://VALET_SITE:443 {
|
||||
|
||||
tls VALET_CERT VALET_KEY
|
||||
|
||||
fastcgi / 127.0.0.1:9000 php {
|
||||
fastcgi / /var/run/valet/fpm.socket php {
|
||||
index VALET_SERVER_PATH
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user