-
Notifications
You must be signed in to change notification settings - Fork 2
/
nginx.conf
45 lines (36 loc) · 987 Bytes
/
nginx.conf
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
45
worker_processes 1;
pid /tmp/nginx.pid;
events {
worker_connections 1024;
}
http {
client_body_temp_path /tmp/client_body_temp;
proxy_temp_path /tmp/proxy_temp;
fastcgi_temp_path /tmp/fastcgi_temp;
uwsgi_temp_path /tmp/uwsgi_temp;
scgi_temp_path /tmp/scgi_temp;
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
#### config from blue-pair
server {
listen 8000;
port_in_redirect off;
# root /usr/share/nginx/html;
root /var/www/html;
gzip_vary on;
gzip_static on;
location / {
expires 1y;
add_header Cache-Control "public";
access_log off;
index do-not-use-me.html;
try_files $uri @index;
}
location @index {
add_header Cache-Control "no-store, no-cache, must-revalidate";
try_files /index.html =404;
}
}
}