mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 01:00:09 +01:00
These larger buffer sizes accommodate larger requests that are often complained about in Valet support issues. These updates are inspired by common configs in Homestead. I've been using these in my local Valet config for 4+ months, without any negative side-effects. Edit: commented-out several, and made consistent with Forge defaults
46 lines
1004 B
Plaintext
46 lines
1004 B
Plaintext
server {
|
|
listen 80 default_server;
|
|
root /;
|
|
charset utf-8;
|
|
client_max_body_size 128M;
|
|
|
|
location /VALET_STATIC_PREFIX/ {
|
|
internal;
|
|
alias /;
|
|
try_files $uri $uri/;
|
|
}
|
|
|
|
location / {
|
|
rewrite ^ "VALET_SERVER_PATH" last;
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|
|
|
|
|
|
## Size Limits & Buffer Overflows
|
|
## the size may be configured based on the needs.
|
|
client_body_buffer_size 100k;
|
|
client_header_buffer_size 1k;
|
|
large_client_header_buffers 2 1k;
|
|
|
|
# large buffer support
|
|
#proxy_buffer_size 4096k;
|
|
#proxy_buffers 128 4096k;
|
|
#proxy_busy_buffers_size 4096k;
|