Browse Source

鉴权修改

袁威 1 week ago
parent
commit
e6593dfffc
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/api/auto_import.py

+ 2 - 1
app/api/auto_import.py

@@ -71,7 +71,8 @@ def _resolve_internal_base_url(request: Request) -> str:
     configured = (settings.INTERNAL_API_BASE_URL or "").strip().rstrip("/")
     if configured:
         return configured
-    return str(request.base_url).rstrip("/")
+    # 默认走本机服务地址,确保不会经过 ingress / oauth 认证链路
+    return f"http://127.0.0.1:{settings.SERVER_PORT}"
 
 
 # --- 内部辅助函数 ---