配置 n8n 前端访问的基本 URL#
¥Configure the Base URL for n8n's front end access
Requires manual UI build
此用例涉及配置 VUE_APP_URL_BASE_API 环境变量,这需要手动构建 n8n-editor-ui 包。默认的 n8n Docker 镜像中,此变量的默认设置为 /,表示它使用根域,因此无法使用。
¥This use case involves configuring the VUE_APP_URL_BASE_API environmental variable which requires a manual build of the n8n-editor-ui package. You can't use it with the default n8n Docker image where the default setting for this variable is /, meaning that it uses the root-domain.
你可以配置前端用于连接后端 REST API 的基本 URL。如果你希望分别托管 n8n 的前端和后端,则此内容适用。
¥You can configure the Base URL that the front end uses to connect to the back end's REST API. This is relevant when you want to host n8n's front end and back end separately.
1 | |
有关此变量的更多信息,请参阅 环境变量参考。
¥Refer to Environment variables reference for more information on this variable.