Alirezamp commited on
Commit
d569530
·
verified ·
1 Parent(s): 9d2c759

Upload 2 files

Browse files
Files changed (2) hide show
  1. docker-entrypoint.sh +15 -0
  2. n8n-task-runners.json +36 -0
docker-entrypoint.sh ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ if [ -d /opt/custom-certificates ]; then
3
+ echo "Trusting custom certificates from /opt/custom-certificates."
4
+ export NODE_OPTIONS="--use-openssl-ca $NODE_OPTIONS"
5
+ export SSL_CERT_DIR=/opt/custom-certificates
6
+ c_rehash /opt/custom-certificates
7
+ fi
8
+
9
+ if [ "$#" -gt 0 ]; then
10
+ # Got started with arguments
11
+ exec n8n "$@"
12
+ else
13
+ # Got started without arguments
14
+ exec n8n
15
+ fi
n8n-task-runners.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task-runners": [
3
+ {
4
+ "runner-type": "javascript",
5
+ "workdir": "/home/node",
6
+ "command": "/usr/local/bin/node",
7
+ "args": [
8
+ "--disallow-code-generation-from-strings",
9
+ "--disable-proto=delete",
10
+ "/usr/local/lib/node_modules/n8n/node_modules/@n8n/task-runner/dist/start.js"
11
+ ],
12
+ "allowed-env": [
13
+ "PATH",
14
+ "GENERIC_TIMEZONE",
15
+ "N8N_RUNNERS_GRANT_TOKEN",
16
+ "N8N_RUNNERS_TASK_BROKER_URI",
17
+ "N8N_RUNNERS_MAX_PAYLOAD",
18
+ "N8N_RUNNERS_MAX_CONCURRENCY",
19
+ "N8N_RUNNERS_TASK_TIMEOUT",
20
+ "N8N_RUNNERS_HEARTBEAT_INTERVAL",
21
+ "N8N_RUNNERS_HEALTH_CHECK_SERVER_ENABLED",
22
+ "N8N_RUNNERS_HEALTH_CHECK_SERVER_HOST",
23
+ "N8N_RUNNERS_HEALTH_CHECK_SERVER_PORT",
24
+ "NODE_FUNCTION_ALLOW_BUILTIN",
25
+ "NODE_FUNCTION_ALLOW_EXTERNAL",
26
+ "N8N_RUNNERS_ALLOW_PROTOTYPE_MUTATION",
27
+ "NODE_OPTIONS",
28
+ "NODE_PATH",
29
+ "N8N_SENTRY_DSN",
30
+ "N8N_VERSION",
31
+ "ENVIRONMENT",
32
+ "DEPLOYMENT_NAME"
33
+ ]
34
+ }
35
+ ]
36
+ }