refactor(nginx): 优化 Nginx 配置并调整 API 路径
- 移除了 Nginx 配置中的错误页面重定向指令 - 添加了 Nginx 的连接超时时间设置 - 修改了京东和沃尔玛卡片信息检查的 API 路径
This commit is contained in:
@@ -13,7 +13,6 @@ server {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
error_page 405 =200 $uri;
|
||||
|
||||
#以下是新增配置
|
||||
proxy_connect_timeout 120;
|
||||
|
||||
@@ -225,7 +225,7 @@ export const batchImportModel = defineComponent({
|
||||
Message.error('上传失败');
|
||||
setLoading(false);
|
||||
}}
|
||||
action={`${getAPIBaseUrl()}/cardInfo/JDCard/account/check`}
|
||||
action={`${getAPIBaseUrl()}/api/cardInfo/JDCard/account/check`}
|
||||
headers={{
|
||||
Authorization: `Bearer ${getToken()}`,
|
||||
tokenFrom: getTokenFrom()
|
||||
|
||||
@@ -222,7 +222,7 @@ export const batchImportModel = defineComponent({
|
||||
Message.error('上传失败');
|
||||
setLoading(false);
|
||||
}}
|
||||
action={`${getAPIBaseUrl()}/cardInfo/walmart/account/check`}
|
||||
action={`${getAPIBaseUrl()}/api/cardInfo/walmart/account/check`}
|
||||
headers={{
|
||||
Authorization: `Bearer ${getToken()}`,
|
||||
tokenFrom: getTokenFrom()
|
||||
|
||||
Reference in New Issue
Block a user