48 lines
660 B
Nginx Configuration File
48 lines
660 B
Nginx Configuration File
user nginx;
|
|
worker_processes auto;
|
|
|
|
error_log /var/log/nginx/error.log error;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
charset utf-8;
|
|
|
|
access_log off;
|
|
log_not_found off;
|
|
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
tcp_nodelay on;
|
|
|
|
gzip on;
|
|
gzip_comp_level 6;
|
|
gzip_min_length 256;
|
|
gzip_proxied any;
|
|
gzip_types
|
|
application/atom+xml
|
|
application/javascript
|
|
application/json
|
|
application/rss+xml
|
|
image/svg+xml
|
|
text/css
|
|
text/plain
|
|
text/xml;
|
|
|
|
server_tokens off;
|
|
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
server {
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
location / {
|
|
}
|
|
|
|
error_page 404 /404.html;
|
|
}
|
|
}
|