37 lines
619 B
Nginx Configuration File
37 lines
619 B
Nginx Configuration File
charset utf-8;
|
|
|
|
tcp_nopush on;
|
|
tcp_nodelay off;
|
|
client_header_timeout 10s;
|
|
client_body_timeout 10s;
|
|
client_max_body_size 20M;
|
|
reset_timedout_connection on;
|
|
|
|
gzip on;
|
|
gzip_types
|
|
text/css
|
|
text/javascript
|
|
text/xml
|
|
text/plain
|
|
application/javascript
|
|
application/x-javascript
|
|
application/json
|
|
application/xml
|
|
application/rss+xml
|
|
application/atom+xml
|
|
font/truetype
|
|
font/opentype
|
|
image/svg+xml;
|
|
|
|
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
root /usr/share/nginx/html;
|
|
|
|
# To make sure any assets can get through :)
|
|
location / {
|
|
try_files $uri /index.html;
|
|
}
|
|
}
|
|
|