1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-01 22:53:29 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

修了一些Bug,修改了一下nginx的相关路由配置

This commit is contained in:
2022-03-13 22:59:43 +08:00
parent e9d6107438
commit da4aaa0c91
11 changed files with 125 additions and 19 deletions

View File

@@ -60,17 +60,17 @@ http {
# 在nginx 作为代理服务器时设置的IP列表会把经过的机器ip代理机器ip都记录下来用 【,】隔开;代码中用 echo $x-forwarded-for |awk -F, '{print $1}' 来作为源IP
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://backendSprintbootServer/;
proxy_pass http://backendSprintbootServer/api/;
index index.html index.htm;
}
# 查看 nginx 状态
# location /ngx_status {
# stub_status on;
# access_log off;
# #allow 127.0.0.1;
# #deny all;
# }
location /nginx_status {
stub_status on;
access_log off;
#allow 127.0.0.1;
#deny all;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html