-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
41 lines (32 loc) · 782 Bytes
/
nginx.conf
File metadata and controls
41 lines (32 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
worker_processes auto;
daemon off;
events {
worker_connections 1024;
}
http {
server_tokens off;
server {
listen 80;
server_name _;
root /dist;
index index.html;
include /etc/nginx/mime.types;
location ~* ^.+\.(?:css|js|jpe?g|gif|htc|ico|png|otf|ttf|eot|woff|woff2|svg)$ {
access_log off;
expires 30d;
add_header Cache-Control public;
## No need to bleed constant updates. Send the all shebang in one
## fell swoop.
tcp_nodelay off;
## Set the OS file cache.
open_file_cache max=10000 inactive=120s;
open_file_cache_valid 120s;
open_file_cache_min_uses 1;
open_file_cache_errors off;
}
location / {
expires 1h;
try_files $uri $uri/ /index.html;
}
}
}