1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 16:50:09 +01:00
Files
laravel-valet/cli/stubs/valet.conf
Kim Ravn Hansen b8bfe077b4 Ensure 128mb max client body size.
client_max_body_size does not propagate down from the http context into
the server context.

See this stack overflow for further details on the issue:
https://stackoverflow.com/questions/2056124/nginx-client-max-body-size-has-no-effect

This fix ensures that the max client body size is always the default
128mb as specified in nginx.conf.
2017-06-22 05:55:58 +02:00

34 lines
702 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;
}
}