refactor(nginx): 优化 Nginx 配置并调整 API 路径

- 移除了 Nginx 配置中的错误页面重定向指令
- 添加了 Nginx 的连接超时时间设置
- 修改了京东和沃尔玛卡片信息检查的 API 路径
This commit is contained in:
danial
2025-03-03 21:03:26 +08:00
parent cab8427cdc
commit b2cd3daabc
3 changed files with 2 additions and 3 deletions

View File

@@ -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;

View File

@@ -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()

View File

@@ -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()