-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnginx.conf
More file actions
44 lines (34 loc) · 1.12 KB
/
nginx.conf
File metadata and controls
44 lines (34 loc) · 1.12 KB
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
42
43
44
server {
listen 80;
listen [::]:80;
server_name localhost;
#access_log /var/log/nginx/host.access.log main;
root /usr/share/nginx/html;
location / {
index index.html index.htm;
include /etc/nginx/conf.d/etc/no-cache-headers.conf;
include /etc/nginx/conf.d/core/*.conf;
}
location /health {
return 200 "OK";
include /etc/nginx/conf.d/etc/no-cache-headers.conf;
}
location = /sw.js {
include /etc/nginx/conf.d/etc/no-cache-headers.conf;
}
location ~* \.(css|js|jsx|htc|cur|svg|gif|jp?g|png|ico|otf|ttf|eot|woff|woff2|xls|doc|exe|tgx|sng)$ {
access_log off;
add_header Expires "Thu, 31 Dec 2037 23:55:55 GMT";
add_header Cache-Control "public, max-age=315360000";
add_header Pragma public;
}
location = /404.html {
include /etc/nginx/conf.d/etc/no-cache-headers.conf;
}
location = /50x.html {
include /etc/nginx/conf.d/etc/no-cache-headers.conf;
}
include /etc/nginx/conf.d/server/*.conf;
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
}