new:[n8n] add charm

This commit is contained in:
default
2024-01-31 18:06:44 +01:00
commit ea46224bdc
5 changed files with 133 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/bash
set -e
host=$(relation-get host) || exit 1
port=$(relation-get port) || exit 1
user=$(relation-get login) || exit 1
password="$(relation-get password)" || exit 1
config-add "\
services:
$MASTER_BASE_SERVICE_NAME:
environment:
N8N_SMTP_USER: \"$user\"
N8N_SMTP_PASS: \"${password//\$/\$\$}\"
N8N_SMTP_HOST: \"$host\"
N8N_SMTP_PORT: \"$port\"
"