-
Notifications
You must be signed in to change notification settings - Fork 382
/
fabu_nginx.conf
40 lines (31 loc) · 786 Bytes
/
fabu_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
server{
listen 80;
server_name fabu.love;
root /home/ubuntu/fabulove/server/uploaded;
index index.html;
location / {
try_files $uri $uri/ @router;
index index.html;
}
location @router {
rewrite ^.*$ /index.html last;
}
location /upload/ {
#该目录为根目录下config文件里配置的文件上传目录
#或者使用node app config 配置的updateDir
root /home/ubuntu/fabulove/upload;
expires 30d;
}
location /api/ {
proxy_pass http://127.0.0.1:8383;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
client_max_body_size 208M;
}
server{
listen 80;
server_name wiki.fabu.love;
root /home/ubuntu/fabulove/wiki/_book;
index index.html;
}