Compare commits

..

23 Commits

Author SHA1 Message Date
goldbillka 8c94a9327d Update hass-n8n/Dockerfile 2025-03-14 23:33:45 +02:00
goldbillka 9aea81b32d Update hass-n8n/config.json 2025-01-02 15:13:10 +02:00
goldbillka 5ca5f5ffc1 Update hass-n8n/Dockerfile 2025-01-02 15:12:44 +02:00
goldbillka aaf976f4db Fixed share mapping 2024-09-02 14:35:04 +03:00
goldbillka a3a1ab6d2b Updated n8n version 2024-09-02 14:29:09 +03:00
goldbillka 02056b645a Fixed N8N_USER_FOLDER 2024-09-02 14:16:22 +03:00
goldbillka 1344cca505 Added encryption_key and user_folder properties 2024-09-02 14:04:07 +03:00
goldbillka c7f5edf7e6 Added N8N_USER_FOLDER and N8N_ENCRYPTION_KEY 2024-09-02 14:02:43 +03:00
goldbillka 557a7ce1bb Update hass-n8n/config.json 2024-08-30 13:09:59 +03:00
goldbillka 8c447c4a0c Update hass-n8n/Dockerfile 2024-08-30 13:03:43 +03:00
goldbillka 8ab960b15a Update hass-n8n/Dockerfile 2024-08-30 13:03:01 +03:00
goldbillka 06ff58d06d Update hass-n8n/docker-entrypoint.sh 2024-08-30 13:02:11 +03:00
goldbillka 99806b33d9 Update hass-n8n/Dockerfile 2024-08-30 12:59:53 +03:00
goldbillka 44cb2cf748 Update 'hass-n8n/Dockerfile' 2024-05-09 17:41:45 +00:00
goldbillka 75f3b9f621 Update 'hass-n8n/Dockerfile' 2024-05-09 16:47:58 +00:00
goldbillka 6d1b36530c Updated n8n image to 1.30.1 2024-02-24 09:40:00 +00:00
goldbillka ad90c45804 Updated n8n config to 1.30.1 2024-02-24 09:39:29 +00:00
goldbillka 1a5d7447ec Updated n8n version 2023-10-20 18:49:30 +00:00
goldbillka 74f09c0cf7 Fixed build error 2023-10-20 18:49:16 +00:00
goldbillka e321a8abb6 Updated n8n version 2023-10-20 18:40:54 +00:00
goldbillka c9b5b61398 Fixed build error 2023-10-20 18:38:55 +00:00
goldbillka bf400a2060 Update 'hass-n8n/config.json' 2023-10-20 16:48:19 +00:00
goldbillka 4e5ecb91a3 Fixed build error 2023-10-20 16:47:54 +00:00
3 changed files with 28 additions and 13 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
ARG N8N_VERSION=ai-beta ARG N8N_VERSION=1.82.3
FROM docker.n8n.io/n8nio/n8n:${N8N_VERSION} FROM docker.n8n.io/n8nio/n8n:${N8N_VERSION}
USER root USER root
RUN apk add --no-cache --update jq bash RUN apk add --no-cache --update jq bash
+18 -5
View File
@@ -1,6 +1,6 @@
{ {
"name": "Hass n8n", "name": "Hass n8n",
"version": "1.11.1.8", "version": "1.72.1",
"slug": "hass-n8n", "slug": "hass-n8n",
"description": "Self host your n8n instance", "description": "Self host your n8n instance",
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"], "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
@@ -9,7 +9,10 @@
"icon": "ico.png", "icon": "ico.png",
"logo": "ico.png", "logo": "ico.png",
"webui": "[PROTO:protocol]://[HOST]:[PORT:5678]/", "webui": "[PROTO:protocol]://[HOST]:[PORT:5678]/",
"map": ["ssl", "share"], "map": [
"share:rw",
"ssl:rw"
],
"apparmor": true, "apparmor": true,
"ports": { "ports": {
"5678/tcp": 5678 "5678/tcp": 5678
@@ -21,17 +24,24 @@
"auth": false, "auth": false,
"auth_username": "", "auth_username": "",
"auth_password": "", "auth_password": "",
"n8n_host": "n8n.automator.keenetic.link", "n8n_host": "n8n.automator.dedyn.io",
"n8n_port": "5678", "n8n_port": "5678",
"node_env": "production", "node_env": "production",
"webhook_tunnel_url": "https://n8n.automator.keenetic.link/", "webhook_tunnel_url": "https://n8n.automator.dedyn.io/",
"timezone": "Europe/Kiev", "timezone": "Europe/Kiev",
"protocol": "http", "protocol": "http",
"certfile": "fullchain_fixed.pem", "certfile": "fullchain_fixed.pem",
"keyfile": "privkey_fixed.pem", "keyfile": "privkey_fixed.pem",
"cmd_line_args": "" "env_vars_list": [
"WEBHOOK_URL: https://n8n.automator.dedyn.io"
],
"cmd_line_args": "start",
"encryption_key": "",
"user_folder": "/share/n8n"
}, },
"schema": { "schema": {
"encryption_key": "str?",
"user_folder": "str?",
"auth": "bool", "auth": "bool",
"auth_username": "str?", "auth_username": "str?",
"auth_password": "str?", "auth_password": "str?",
@@ -43,6 +53,9 @@
"protocol": "str", "protocol": "str",
"certfile": "str", "certfile": "str",
"keyfile": "str", "keyfile": "str",
"env_vars_list": [
"match(^[A-Z_0-9]+: .*$)"
],
"cmd_line_args": "str?" "cmd_line_args": "str?"
} }
} }
+9 -7
View File
@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
CONFIG_PATH="/data/options.json" CONFIG_PATH="/data/options.json"
N8N_PATH="/data/n8n" N8N_PATH="$(jq --raw-output '.user_folder // empty' $CONFIG_PATH)"
mkdir -p "${N8N_PATH}/.n8n/.cache" mkdir -p "${N8N_PATH}/.n8n/.cache"
@@ -26,7 +26,11 @@ do
export "$key"="$value" export "$key"="$value"
echo "exported ${key}=${value}" echo "exported ${key}=${value}"
done done
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 '.node_env // empty' $CONFIG_PATH)"
export WEBHOOK_TUNNEL_URL="$(jq --raw-output '.webhook_tunnel_url // empty' $CONFIG_PATH)"
export N8N_BASIC_AUTH_ACTIVE="$(jq --raw-output '.auth // empty' $CONFIG_PATH)" 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_USER="$(jq --raw-output '.auth_username // empty' $CONFIG_PATH)"
export N8N_BASIC_AUTH_PASSWORD="$(jq --raw-output '.auth_password // empty' $CONFIG_PATH)" export N8N_BASIC_AUTH_PASSWORD="$(jq --raw-output '.auth_password // empty' $CONFIG_PATH)"
@@ -34,13 +38,11 @@ export GENERIC_TIMEZONE="$(jq --raw-output '.timezone // empty' $CONFIG_PATH)"
export N8N_PROTOCOL="$(jq --raw-output '.protocol // 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)" export N8N_SSL_CERT="/ssl/$(jq --raw-output '.certfile // empty' $CONFIG_PATH)"
export N8N_SSL_KEY="/ssl/$(jq --raw-output '.keyfile // empty' $CONFIG_PATH)" export N8N_SSL_KEY="/ssl/$(jq --raw-output '.keyfile // empty' $CONFIG_PATH)"
export N8N_CMD_LINE="$(jq --raw-output '.cmd_line_args // empty' $CONFIG_PATH)" export N8N_ENCRYPTION_KEY="$(jq --raw-output '.encryption_key // empty' $CONFIG_PATH)"
export N8N_USER_FOLDER="${N8N_PATH}" export N8N_USER_FOLDER="${N8N_PATH}"
export N8N_HOST="$(jq --raw-output '.n8n_host // empty' $CONFIG_PATH)" export N8N_CMD_LINE="$(jq --raw-output '.cmd_line_args // 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)"
if [ -z "${N8N_BASIC_AUTH_USER}" ] || [ -z "${N8N_BASIC_AUTH_ACTIVE}" ]; then if [ -z "${N8N_BASIC_AUTH_USER}" ] || [ -z "${N8N_BASIC_AUTH_ACTIVE}" ]; then
export N8N_BASIC_AUTH_ACTIVE=false export N8N_BASIC_AUTH_ACTIVE=false