forked from y-kkamil/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
47 lines (35 loc) · 905 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
46
47
worker_processes auto;
events {
worker_connections 8096;
multi_accept on;
use epoll;
}
http {
default_type application/octet-stream;
include mime.types;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
gzip on;
gzip_types text/plain application/javascript application/x-javascript text/javascript text/xml text/css;
keepalive_timeout 5;
keepalive_requests 200;
reset_timedout_connection on;
server_tokens off;
server {
server_name localhost;
listen 80 http2;
root /var/public;
port_in_redirect off;
location / {
try_files $uri$args $uri$args/ $uri $uri/ /;
add_header 'Cache-Control' 'public, max-age=300';
add_header Access-Control-Allow-Origin *;
}
location /status {
access_log off;
stub_status;
add_header Access-Control-Allow-Origin *;
}
}
}