部署与运维

Disable the public API

The n8n public REST API allows you to programmatically perform many of the same tasks as you can in the n8n GUI.

If you don't plan on using this API, n8n recommends disabling it to improve the security of your n8n installation.

To disable the public REST API, set the N8N_PUBLIC_API_DISABLED environment variable to true, for example:

bash
export N8N_PUBLIC_API_DISABLED=true

Disable the API playground

To disable the API playground, set the N8N_PUBLIC_API_SWAGGERUI_DISABLED environment variable to true, for example:

bash
export N8N_PUBLIC_API_SWAGGERUI_DISABLED=true

Related resources

Refer to Deployment environment variables for more information on these environment variables.

Refer to Configuration for more information on setting environment variables.

官方原文和授权

本页来自 N8N 英文官方网站固定快照,并转换成 xueai 静态页面。内容以 N8N 持续更新的官方页面为准。

来源、授权与修改

本站保留许可证、固定提交号、社区作者和修改说明,不代表 n8n 对本站背书。

查看许可证查看来源和修改说明