fix(n8n): W5 改内网直连 NocoDB http://nocodb:10380 (原公网 CF tunnel 慢/抖致 504→footer 重试风暴)
This commit is contained in:
File diff suppressed because one or more lines are too long
+6
-1
@@ -34,10 +34,15 @@ function linkId(v) {
|
||||
return v;
|
||||
}
|
||||
|
||||
// 内网直连 NocoDB:n8n 与 nocodb 同在 bridge_hoelee,NocoDB 监听 :10380。
|
||||
// 原 NOCODB_URL=https://nocodb.hoelee.com 走公网 CF tunnel,慢且抖(曾致 >60s → nginx 504
|
||||
// → footer 8s 超时每 1s 重试 → 连接堆积 → 503)。内网 30ms vs 公网 300ms+,且无 tunnel 抖动。
|
||||
const NOCODB_URL = 'http://nocodb:10380';
|
||||
|
||||
async function ncGet(path) {
|
||||
return await ctx.helpers.httpRequest({
|
||||
method: 'GET',
|
||||
url: ctx.$env.NOCODB_URL + path,
|
||||
url: NOCODB_URL + path,
|
||||
headers: { 'xc-token': ctx.$env.NOCODB_TOKEN },
|
||||
json: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user