Skip to content

Commit c85d44d

Browse files
authored
去除允许n8n调用所有外部模块
允许n8n调用所有外部模块及其它代码的环境变量已经在Dockerfile声明了 就没必要在这里重复声明
1 parent 70ea126 commit c85d44d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

n8n.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ def read_file_if_not_empty(file_path):
119119
space_variables=[
120120
{"key": "GENERIC_TIMEZONE", "value": "Asia/Shanghai"},
121121
{"key": "TZ", "value": "Asia/Shanghai"},
122-
{"key": "NODE_FUNCTION_ALLOW_BUILTIN", "value": "*"},
123-
{"key": "NODE_FUNCTION_ALLOW_EXTERNAL", "value": "*"},
124122
{"key": "N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS", "value": "true"},
125123
{"key": "WEBHOOK_URL", "value": f"https://{userid}-{space_name}.hf.space"},
126124
],

0 commit comments

Comments
 (0)