forked from bowenpay/wechat-spider
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx.conf
36 lines (29 loc) · 865 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
upstream wechatspider_0fenbei_uwsgi_backend {
server 127.0.0.1:49161;
}
server {
listen 80;
server_name wechatspider.0fenbei.com;
location ^~ /.git {
deny all;
}
location ^~ /static {
root /var/www/0fenbei/wechat-spider;
index index.html;
expires 1M;
access_log off;
add_header Cache-Control "public";
}
location / {
proxy_next_upstream error timeout http_500 http_503;
proxy_connect_timeout 4000ms;
proxy_read_timeout 30s;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Rewrite-URL $request_uri;
client_max_body_size 10m;
uwsgi_pass wechatspider_0fenbei_uwsgi_backend;
include uwsgi_params;
}
}