This commit is contained in:
2026-02-06 16:17:59 +01:00
parent 9149976db4
commit d8eb92319b
4 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
Your license key
5e377abd-f816-4949-9f95-5c8c9dbfbd37
Your license key
19385219-1295-451f-8130-37557cf74f8c

View File

@@ -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:

33
Docker/n8n_aps/n8n.conf Normal file
View File

@@ -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;
}
}

View File