Updating nginx config
This commit is contained in:
parent
c4e0cfc5ce
commit
6df2b3d8de
30
nginx.conf
30
nginx.conf
|
|
@ -1,13 +1,21 @@
|
||||||
events{}
|
server {
|
||||||
http {
|
listen 0.0.0.0:80;
|
||||||
include /etc/nginx/mime.types;
|
listen [::]:80;
|
||||||
server {
|
default_type application/octet-stream;
|
||||||
listen 80;
|
|
||||||
server_name localhost;
|
gzip on;
|
||||||
root /usr/share/nginx/html;
|
gzip_comp_level 6;
|
||||||
index index.html;
|
gzip_vary on;
|
||||||
location / {
|
gzip_min_length 1000;
|
||||||
try_files $uri $uri/ /index.html;
|
gzip_proxied any;
|
||||||
}
|
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
||||||
|
gzip_buffers 16 8k;
|
||||||
|
gunzip on;
|
||||||
|
client_max_body_size 256M;
|
||||||
|
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.html =404;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user