forked from n8n-io/n8n
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09f2cf9
commit e76f7f0
Showing
45 changed files
with
1,436 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
DATABASE_URL='postgres://postgres:123@localhost:5432/postgres' | ||
DB_POSTGRESDB_SCHEMA=postgres | ||
DB_TYPE=postgresdb | ||
EXECUTIONS_MODE=queue | ||
N8N_LOG_LEVEL=debug | ||
REDIS_URL='redis://:1234@localhost:6379' | ||
DB_POSTGRESDB_SCHEMA=local | ||
PORT=5678 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,6 @@ packages/**/.turbo | |
CHANGELOG-*.md | ||
*.mdx | ||
build-storybook.log | ||
.env | ||
.env.local.with.aws | ||
dump.rdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
web: npm start | ||
worker: npm start worker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"stack": "heroku-20" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
"version": "1.50.0", | ||
"private": true, | ||
"engines": { | ||
"node": ">=18.10", | ||
"pnpm": ">=9.1" | ||
"node": "~20.0.0", | ||
"pnpm": "9.5.0" | ||
}, | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
|
@@ -36,6 +36,37 @@ | |
"webhook": "./packages/cli/bin/n8n webhook", | ||
"worker": "./packages/cli/bin/n8n worker" | ||
}, | ||
"dependencies": { | ||
"@anthropic-ai/sdk": "^0.19.1", | ||
"@aws-sdk/client-s3": "^3.550.0", | ||
"@aws-sdk/s3-request-presigner": "^3.550.0", | ||
"aws-sdk" : "^2.1594.0", | ||
"lodash": "^4.17.21", | ||
"openai": "^4.32.1", | ||
"sharp": "^0.33.3", | ||
"api": "^6.1.1", | ||
"axios": "^1.6.8", | ||
"redis": "^4.6.3", | ||
"bullmq": "^5.5.0", | ||
"zip-to-tz": "^1.1.0", | ||
"dotenv": "^16.4.5", | ||
"nanoid": "^5.0.6", | ||
"uid": "^2.0.2", | ||
"body-parser": "^1.20.2", | ||
"chargebee": "^2.34.0", | ||
"mixpanel": "^0.18.0", | ||
"jwt-decode": "^4.0.0", | ||
"redis-url-parse": "^2.0.0", | ||
"twilio": "^5.0.3", | ||
"firebase-admin": "^12.0.0", | ||
"firebase": "^10.10.0", | ||
"activecampaign": "^1.2.5", | ||
"crypto-js": "4.2.0", | ||
"authorizenet": "1.0.8", | ||
"form-data": "^4.0.0", | ||
"moment": "~2.29.2", | ||
"moment-timezone": "^0.5.28" | ||
}, | ||
"devDependencies": { | ||
"@n8n_io/eslint-config": "workspace:*", | ||
"@types/jest": "^29.5.3", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ | |
"workflow" | ||
], | ||
"engines": { | ||
"node": ">=18.10" | ||
"node": "~20.0.0" | ||
}, | ||
"files": [ | ||
"bin", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import type { RedisOptions } from 'ioredis'; | ||
import { LoggerProxy as Logger } from 'n8n-workflow'; | ||
import { URL } from 'url'; | ||
import config from '@/config'; | ||
|
||
export function parseRedisUrl(): RedisOptions | null { | ||
const redisUri = process.env.REDIS_URL; | ||
if (redisUri) { | ||
const parsedURL = new URL(redisUri); | ||
Logger.debug(`Global Redis is configured`); | ||
return { | ||
host: parsedURL.hostname, | ||
port: parseInt(parsedURL.port), | ||
username: config.getEnv('queue.bull.redis.username'), | ||
password: parsedURL.password, | ||
db: config.getEnv('queue.bull.redis.db'), | ||
}; | ||
} else { | ||
Logger.debug(`Global Redis is not configured, working with specific environment variables`); | ||
return null; | ||
} | ||
} | ||
|
||
export function parsePostgresUrl(): any { | ||
const postgresUri = process.env.DATABASE_URL; | ||
if (postgresUri) { | ||
const parsedURL = new URL(postgresUri); | ||
Logger.debug(`Global Postgres is configured`); | ||
return { | ||
database: parsedURL.pathname.slice(1), | ||
username: parsedURL.username, | ||
password: parsedURL.password, | ||
host: parsedURL.hostname, | ||
port: parseInt(parsedURL.port), | ||
}; | ||
} else { | ||
Logger.debug(`Global Postgres is not configured, working with specific environment variables`); | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.