34 lines
866 B
Batchfile
34 lines
866 B
Batchfile
|
|
@echo off
|
||
|
|
echo ================================================
|
||
|
|
echo Starting n8n with Windows Configuration
|
||
|
|
echo ================================================
|
||
|
|
|
||
|
|
REM 设置环境变量
|
||
|
|
set N8N_PORT=5678
|
||
|
|
set N8N_HOST=0.0.0.0
|
||
|
|
set N8N_PROTOCOL=http
|
||
|
|
set N8N_CORS_ENABLED=true
|
||
|
|
set N8N_CORS_ORIGINS=http://localhost:*,http://192.168.*.*:*,http://127.0.0.1:*
|
||
|
|
set N8N_USER_MANAGEMENT_DISABLED=true
|
||
|
|
set N8N_SKIP_OWNER_SETUP=true
|
||
|
|
set N8N_PUSH_BACKEND=websocket
|
||
|
|
set WEBHOOK_URL=http://localhost:5678
|
||
|
|
set N8N_DEFAULT_LOCALE=zh-CN
|
||
|
|
set N8N_LOG_LEVEL=error
|
||
|
|
set N8N_DIAGNOSTICS_ENABLED=false
|
||
|
|
set N8N_ENCRYPTION_KEY=your-encryption-key-here
|
||
|
|
|
||
|
|
echo.
|
||
|
|
echo Configuration:
|
||
|
|
echo - Port: %N8N_PORT%
|
||
|
|
echo - CORS: Enabled for all local/LAN access
|
||
|
|
echo - Authentication: Disabled
|
||
|
|
echo - Language: Chinese
|
||
|
|
echo - WebSocket: Enabled
|
||
|
|
echo.
|
||
|
|
|
||
|
|
REM 启动 n8n
|
||
|
|
echo Starting n8n...
|
||
|
|
pnpm start
|
||
|
|
|
||
|
|
pause
|