1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 08:40:09 +01:00
Files
laravel-valet/cli/stubs/nginx.conf
Andrew Welch 61514e5f52 Add ssi on; to the default config
Defaulting to having `ssi on;` in the `http` block will allow those of us doing Nginx Server Side Includes to use Valet in local development.

A longer explanation of SSI, why we want it, and the impact is here: https://github.com/laravel/valet/issues/513

Signed-off-by: Andrew Welch <andrew@nystudio107.com>
2018-02-01 13:19:23 -05:00

44 lines
811 B
Nginx Configuration File

user VALET_USER staff;
worker_processes auto;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
client_max_body_size 128M;
gzip on;
gzip_comp_level 5;
gzip_min_length 256;
gzip_proxied any;
gzip_vary on;
ssi on;
gzip_types
application/atom+xml
application/javascript
application/json
application/rss+xml
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
text/plain
text/x-component;
include VALET_HOME_PATH/Nginx/*;
include servers/*;
include valet/valet.conf;
}