fix: [n8n] upd 1.45.1 and fix email invitation
This commit is contained in:
17
n8n/hooks/web_proxy-relation-joined
Executable file
17
n8n/hooks/web_proxy-relation-joined
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
DOMAIN=$(relation-get domain) || {
|
||||||
|
echo "Failed to get domain"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
config-add "\
|
||||||
|
services:
|
||||||
|
$MASTER_BASE_SERVICE_NAME:
|
||||||
|
environment:
|
||||||
|
N8N_HOST: \"${DOMAIN}\"
|
||||||
|
WEBHOOK_URL: \"https:\/\/${DOMAIN}\"
|
||||||
|
"
|
||||||
|
|
@@ -1,4 +1,4 @@
|
|||||||
docker-image: docker.n8n.io/n8nio/n8n:1.23.0
|
docker-image: docker.0k.io/n8n:1.45.1
|
||||||
|
|
||||||
uses:
|
uses:
|
||||||
postgres-database:
|
postgres-database:
|
||||||
@@ -22,6 +22,15 @@ uses:
|
|||||||
proxy: "Public access"
|
proxy: "Public access"
|
||||||
default-options:
|
default-options:
|
||||||
target: !var-expand ${MASTER_BASE_SERVICE_NAME}:5678
|
target: !var-expand ${MASTER_BASE_SERVICE_NAME}:5678
|
||||||
|
apache-custom-rules:
|
||||||
|
- !var-expand |
|
||||||
|
|
||||||
|
## Use RewriteEngine to handle WebSocket connection upgrades
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteCond %{HTTP:Upgrade} ^websocket$ [NC]
|
||||||
|
RewriteCond %{HTTP:Connection} Upgrade [NC]
|
||||||
|
RewriteRule /(.*)\$ ws://${MASTER_BASE_SERVICE_NAME}:5678/\$1 [P,L]
|
||||||
|
|
||||||
backup:
|
backup:
|
||||||
constraint: recommended
|
constraint: recommended
|
||||||
auto: pair
|
auto: pair
|
||||||
|
Reference in New Issue
Block a user