mirror of
https://github.com/laravel/valet.git
synced 2026-02-04 16:10:08 +01:00
- Sets `client_max_body_size 128M` in `http` section of `nginx.conf` so it covers all configs - Adds `php-memory-limits.conf` to `php-fpm` conf folder, to set `memory_limit`, `upload_max_filesize`, `post_max_size` all to 128M (Updates #253 by moving config location to cover all, since #253 didn't cover secure configs, etc)
36 lines
806 B
Plaintext
36 lines
806 B
Plaintext
server {
|
|
listen 80 default_server;
|
|
root /;
|
|
charset utf-8;
|
|
|
|
location /VALET_STATIC_PREFIX/ {
|
|
internal;
|
|
alias /;
|
|
try_files $uri $uri/;
|
|
}
|
|
|
|
location / {
|
|
rewrite ^ VALET_SERVER_PATH last;
|
|
}
|
|
|
|
location = /favicon.ico { access_log off; log_not_found off; }
|
|
location = /robots.txt { access_log off; log_not_found off; }
|
|
|
|
access_log off;
|
|
error_log VALET_HOME_PATH/Log/nginx-error.log;
|
|
|
|
error_page 404 VALET_SERVER_PATH;
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass unix:VALET_HOME_PATH/valet.sock;
|
|
fastcgi_index VALET_SERVER_PATH;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME VALET_SERVER_PATH;
|
|
}
|
|
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
}
|