init
This commit is contained in:
commit
c33afaf8f0
21 changed files with 1690 additions and 0 deletions
40
docker/n8n/swag/n8n.subdomain.conf
Normal file
40
docker/n8n/swag/n8n.subdomain.conf
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
## -----------------------------------------------------------------------------
|
||||
## SWAG proxy config for n8n
|
||||
## Domain: n8n.ld50.xyz
|
||||
## Upstream: n8n-main:5678 (shared Docker network: ${NETWORKS_EXTERNAL_NAME:-swag})
|
||||
##
|
||||
## Install:
|
||||
## 1) Copy this file into SWAG: /config/nginx/proxy-confs/n8n.subdomain.conf
|
||||
## 2) Ensure both stacks share the same external Docker network (e.g. `swag`).
|
||||
## 3) In curated_compose/n8n/docker-compose.yaml, uncomment external_network.
|
||||
## 4) Reload SWAG.
|
||||
## -----------------------------------------------------------------------------
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
|
||||
server_name n8n.ld50.xyz;
|
||||
|
||||
include /config/nginx/ssl.conf;
|
||||
|
||||
# n8n imports/exports can be large
|
||||
client_max_body_size 100M;
|
||||
|
||||
location / {
|
||||
include /config/nginx/proxy.conf;
|
||||
|
||||
set $upstream_app n8n-main;
|
||||
set $upstream_port 5678;
|
||||
set $upstream_proto http;
|
||||
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
# Required for SSE / websocket-like upgrades used by parts of n8n
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
proxy_read_timeout 3600s;
|
||||
proxy_send_timeout 3600s;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue