我在本地运行n8n来测试它,但我一直在努力设置https协议而不是http。
我在bashrc中添加了配置:
export N8N_PROTOCOL="https"
export N8N_SSL_KEY=/path/to/keyfile
export N8N_SSL_CER=/path/to/certfile
当我开始 n8n 时,我得到:
Editor is now accessible via:
http://localhost:5678/
不幸的是,这并没有产生任何结果。有人可以解释一下怎么做吗?
试试这个:
export N8N_HOST="YOUR_HOST"
export N8N_PROTOCOL="https"
export N8N_PORT=8443
export VUE_APP_URL_BASE_API="https://YOUR_HOST/"
export WEBHOOK_TUNNEL_URL="https://YOUR_HOST:8443/"
export N8N_SSL_KEY=/PATH_TO/privkey.pem
export N8N_SSL_CERT=/PATH_TO/cert.pem
或使用
n8n --tunnel