Added new options
This commit is contained in:
+11
-3
@@ -21,15 +21,23 @@
|
||||
"auth": false,
|
||||
"auth_username": "",
|
||||
"auth_password": "",
|
||||
"n8n_host": "n8n.automator.ml",
|
||||
"n8n_port": "5678",
|
||||
"node_env": "production",
|
||||
"webhook_tunnel_url": "https://n8n.automator.ml/",
|
||||
"timezone": "Europe/Kiev",
|
||||
"protocol": "http",
|
||||
"certfile": "fullchain.pem",
|
||||
"keyfile": "privkey.pem"
|
||||
"protocol": "https",
|
||||
"certfile": "fullchain_fixed.pem",
|
||||
"keyfile": "privkey_fixed.pem"
|
||||
},
|
||||
"schema": {
|
||||
"auth": "bool",
|
||||
"auth_username": "str?",
|
||||
"auth_password": "str?",
|
||||
"n8n_host": "str",
|
||||
"n8n_port": "str",
|
||||
"node_env": "str",
|
||||
"webhook_tunnel_url": "str",
|
||||
"timezone": "str",
|
||||
"protocol": "str",
|
||||
"certfile": "str",
|
||||
|
||||
@@ -16,6 +16,10 @@ mkdir -p "${N8N_PATH}/.n8n"
|
||||
export N8N_BASIC_AUTH_ACTIVE="$(jq --raw-output '.auth // empty' $CONFIG_PATH)"
|
||||
export N8N_BASIC_AUTH_USER="$(jq --raw-output '.auth_username // empty' $CONFIG_PATH)"
|
||||
export N8N_BASIC_AUTH_PASSWORD="$(jq --raw-output '.auth_password // empty' $CONFIG_PATH)"
|
||||
export N8N_HOST="$(jq --raw-output '.n8n_host // empty' $CONFIG_PATH)"
|
||||
export N8N_PORT="$(jq --raw-output '.n8n_port // empty' $CONFIG_PATH)"
|
||||
export NODE_ENV="$(jq --raw-output '.mode_env // empty' $CONFIG_PATH)"
|
||||
export WEBHOOK_TUNNEL_URL="$(jq --raw-output '.webhook_tunnel_url // empty' $CONFIG_PATH)"
|
||||
export GENERIC_TIMEZONE="$(jq --raw-output '.timezone // empty' $CONFIG_PATH)"
|
||||
export N8N_PROTOCOL="$(jq --raw-output '.protocol // empty' $CONFIG_PATH)"
|
||||
export N8N_SSL_CERT="/ssl/$(jq --raw-output '.certfile // empty' $CONFIG_PATH)"
|
||||
|
||||
Reference in New Issue
Block a user