mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 08:40:09 +01:00
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>
44 lines
811 B
Nginx Configuration File
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;
|
|
}
|