From d8eb92319b6a8c7dfbe05def8a6d3a58cf7c9db4 Mon Sep 17 00:00:00 2001 From: wpanda Date: Fri, 6 Feb 2026 16:17:59 +0100 Subject: [PATCH] n8n aps --- Docker/n8n_aps/Your license key.md | 5 +++++ Docker/n8n_aps/docker-compose.yml | 27 ++++++++++++++++++++++++ Docker/n8n_aps/n8n.conf | 33 ++++++++++++++++++++++++++++++ Docker/n8n_meszely.eu/example.md | 0 4 files changed, 65 insertions(+) create mode 100644 Docker/n8n_aps/Your license key.md create mode 100644 Docker/n8n_aps/docker-compose.yml create mode 100644 Docker/n8n_aps/n8n.conf create mode 100644 Docker/n8n_meszely.eu/example.md diff --git a/Docker/n8n_aps/Your license key.md b/Docker/n8n_aps/Your license key.md new file mode 100644 index 0000000..fac368f --- /dev/null +++ b/Docker/n8n_aps/Your license key.md @@ -0,0 +1,5 @@ +Your license key +5e377abd-f816-4949-9f95-5c8c9dbfbd37 + +Your license key +19385219-1295-451f-8130-37557cf74f8c diff --git a/Docker/n8n_aps/docker-compose.yml b/Docker/n8n_aps/docker-compose.yml new file mode 100644 index 0000000..355bf1a --- /dev/null +++ b/Docker/n8n_aps/docker-compose.yml @@ -0,0 +1,27 @@ +services: + n8n: + image: n8nio/n8n + restart: always + ports: + - "5678:5678" + volumes: + - n8n_data:/home/node/.n8n + environment: + # The host URL where n8n will be accessible. Change to your domain or IP. + - N8N_HOST=${N8N_HOST:-localhost} + - N8N_PORT=5678 + - N8N_PROTOCOL=http + # This is the URL that n8n will send to external services for webhooks. + # Make sure to update this to your publicly accessible URL. + - WEBHOOK_URL=${WEBHOOK_URL:-http://localhost:5678/} + # Explicitly set secure cookie to false for testing with HTTP + - N8N_SECURE_COOKIE=false + # Set your desired timezone + - GENERIC_TIMEZONE=${GENERIC_TIMEZONE:-Europe/Berlin} + # Database configuration - using SQLite for simplicity with fewer tasks + - DB_TYPE=sqlite + # No specific host, database, user, or password needed for SQLite + # depends_on is no longer needed without postgres + +volumes: + n8n_data: diff --git a/Docker/n8n_aps/n8n.conf b/Docker/n8n_aps/n8n.conf new file mode 100644 index 0000000..af7f3f5 --- /dev/null +++ b/Docker/n8n_aps/n8n.conf @@ -0,0 +1,33 @@ +server { + listen 80; + server_name your.domain.com; # Replace with your actual domain + return 301 https://$host$request_uri; +} + +server { + listen 443 ssl http2; + server_name your.domain.com; # Replace with your actual domain + + ssl_certificate /path/to/your/fullchain.pem; # Replace with your certificate path (e.g., /etc/letsencrypt/live/your.domain.com/fullchain.pem) + ssl_certificate_key /path/to/your/privkey.pem; # Replace with your private key path (e.g., /etc/letsencrypt/live/your.domain.com/privkey.pem) + ssl_session_cache shared:SSL:10m; + ssl_session_timeout 10m; + ssl_protocols TLSv1.2 TLSv1.3; + ssl_ciphers "ECDHE+AESGCM:ECDHE+CHACHA20:DHE+AESGCM:DHE+CHACHA20"; + ssl_prefer_server_ciphers on; + + # Optional: Enable HSTS + # add_header Strict-Transport-Security "max-age=63072000" always; + + location / { + proxy_pass http://localhost:5678; # n8n is running on port 5678 on the host + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + # Required for n8n Webhook URLs + proxy_set_header X-N8N-Webhook-Url $scheme://$host$request_uri; + } +} diff --git a/Docker/n8n_meszely.eu/example.md b/Docker/n8n_meszely.eu/example.md new file mode 100644 index 0000000..e69de29