Fix WEBHOOK_URL, add MomentJS, add SSO
This commit is contained in:
parent
3f78484334
commit
07e74fc6e3
10
.env.sample
10
.env.sample
@ -6,9 +6,13 @@ DOMAIN=n8n.example.com
|
||||
#EXTRA_DOMAINS=', `www.n8n.example.com`'
|
||||
LETS_ENCRYPT_ENV=production
|
||||
|
||||
N8N_BASIC_AUTH_USER=test
|
||||
N8N_BASIC_AUTH_PASSWORD=test
|
||||
# Only required if you're not using SSO
|
||||
N8N_BASIC_AUTH_USER=username
|
||||
|
||||
SECRET_DB_NON_ROOT_PASSWORD_VERSION=v1
|
||||
SECRET_DB_PASSWORD_VERSION=v1
|
||||
SECRET_ADMIN_PASSWORD_VERSION=v1
|
||||
|
||||
COMPOSE_FILE="compose.yml"
|
||||
|
||||
# SSO using traefik-forward-auth
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.sso.yml"
|
||||
|
16
compose.sso.yml
Normal file
16
compose.sso.yml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
app:
|
||||
image: n8nio/n8n
|
||||
environment:
|
||||
- N8N_BASIC_AUTH_ACTIVE=false
|
||||
deploy:
|
||||
labels:
|
||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=5678"
|
||||
- "traefik.http.routers.${STACK_NAME}.middlewares=keycloak@file"
|
||||
- "traefik.http.routers.${STACK_NAME}_public.rule=(Host(`${DOMAIN}`) && PathPrefix(`/webhook`))"
|
||||
- "traefik.http.routers.${STACK_NAME}_public.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
- "traefik.http.routers.${STACK_NAME}_public.entrypoints=web-secure"
|
@ -14,9 +14,9 @@ services:
|
||||
- DB_POSTGRESDB_PASSWORD_FILE=/run/secrets/db_password
|
||||
- N8N_BASIC_AUTH_ACTIVE=true
|
||||
- N8N_BASIC_AUTH_USER
|
||||
- N8N_BASIC_AUTH_PASSWORD
|
||||
- N8N_BASIC_AUTH_PASSWORD_FILE=/run/secrets/admin_password
|
||||
- WEBHOOK_URL=https:/${DOMAIN}
|
||||
- WEBHOOK_URL=https://${DOMAIN}
|
||||
- NODE_FUNCTION_ALLOW_EXTERNAL=moment
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
@ -50,7 +50,6 @@ services:
|
||||
- POSTGRES_USER=root
|
||||
- POSTGRES_PASSWORD_FILE=/run/secrets/db_password
|
||||
- POSTGRES_DB=n8n
|
||||
# - POSTGRES_NON_ROOT_USER
|
||||
secrets:
|
||||
- db_password
|
||||
healthcheck:
|
||||
|
Loading…
Reference in New Issue
Block a user