mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 17:10:05 +01:00
Use socket, store in valet home and set loose permissions
This commit is contained in:
@@ -61,7 +61,10 @@ function updateConfiguration()
|
||||
|
||||
$contents = preg_replace('/^user = .+$/m', 'user = '.user(), $contents);
|
||||
$contents = preg_replace('/^group = .+$/m', 'group = staff', $contents);
|
||||
$contents = preg_replace('/^listen = .+$/m', 'listen = 127.0.0.1:9000', $contents);
|
||||
$contents = preg_replace('/^listen = .+$/m', 'listen = '.VALET_HOME_PATH.'/valet.sock', $contents);
|
||||
$contents = preg_replace('/^;?listen\.owner = .+$/m', 'listen.owner = '.user(), $contents);
|
||||
$contents = preg_replace('/^;?listen\.group = .+$/m', 'listen.group = staff', $contents);
|
||||
$contents = preg_replace('/^;?listen\.mode = .+$/m', 'listen.mode = 0777', $contents);
|
||||
|
||||
$this->files->put($this->fpmConfigPath(), $contents);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ server {
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_pass unix:VALET_HOME_PATH/valet.sock;
|
||||
fastcgi_index VALET_SERVER_PATH;
|
||||
|
||||
fastcgi_param QUERY_STRING $query_string;
|
||||
|
||||
Reference in New Issue
Block a user