-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnginx.conf
35 lines (27 loc) · 1.04 KB
/
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
server {
listen 80;
listen [::]:80;
server_name _;
add_header X-Content-Type-Options "nosniff";
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
resolver 8.8.8.8 8.8.4.4;
resolver_timeout 5s;
gzip on;
gzip_types text/plain text/javascript text/xml text/css application/xml application/json application/x-javascri
pt application/javascript application/xml+rss;
gzip_proxied any;
gzip_vary on;
gzip_comp_level 3;
gzip_disable "MSIE [1-6]\.";
location / {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache_bypass $http_cache_control;
add_header Vary Accept-Encoding;
}
client_max_body_size 50m;
}