1
This commit is contained in:
@@ -110,6 +110,35 @@ server {
|
||||
client_max_body_size 100M;
|
||||
}
|
||||
|
||||
# WPS365 OAuth回调接口(必须放在 /jarvis-api/ 之后,location / 之前)
|
||||
location /wps365-callback {
|
||||
proxy_pass http://127.0.0.1:30313/wps365-callback;
|
||||
|
||||
# 请求头设置
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Host $server_name;
|
||||
|
||||
# POST请求支持
|
||||
proxy_set_header Content-Type $content_type;
|
||||
proxy_set_header Content-Length $content_length;
|
||||
proxy_pass_request_headers on;
|
||||
proxy_pass_request_body on;
|
||||
|
||||
# HTTP版本
|
||||
proxy_http_version 1.1;
|
||||
|
||||
# 超时设置
|
||||
proxy_connect_timeout 600s;
|
||||
proxy_send_timeout 600s;
|
||||
proxy_read_timeout 600s;
|
||||
|
||||
# 请求体大小限制
|
||||
client_max_body_size 100M;
|
||||
}
|
||||
|
||||
# 注意:jarvis相关API已通过 /jarvis-api/ 代理,不再需要单独的 /jarvis/ location
|
||||
|
||||
# Druid监控代理(如果需要)
|
||||
|
||||
@@ -9,7 +9,7 @@ import { isRelogin } from '@/utils/request'
|
||||
|
||||
NProgress.configure({ showSpinner: false })
|
||||
|
||||
const whiteList = ['/login', '/register', '/public/home', '/tools/comment-gen', '/tools/order-search', '/public/order-submit']
|
||||
const whiteList = ['/login', '/register', '/public/home', '/tools/comment-gen', '/tools/order-search', '/public/order-submit', '/wps365-callback', '/tendoc-callback']
|
||||
|
||||
const isWhiteList = (path) => {
|
||||
return whiteList.some(pattern => isPathMatch(pattern, path))
|
||||
|
||||
Reference in New Issue
Block a user