1 Star 0 Fork 1

wuyigq / fabu.love

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
fabu_nginx.conf 786 Bytes
一键复制 编辑 原始数据 按行查看 历史
炸鸡叔 提交于 2018-09-21 13:46 . Update fabu_nginx.conf
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;
}
JavaScript
1
https://gitee.com/wuyigq/fabu.love.git
git@gitee.com:wuyigq/fabu.love.git
wuyigq
fabu.love
fabu.love
master

搜索帮助