Hi!
I use a kubernetes deployment from the official documentation
When I want to use a google Oauth credentials, the redirection url is defined as scheme://url:port
but because I use an ingress as a reverse proxy and don’t use port 80 or 443 directly with n8n. I’m unable to use the correct callback
.
Is there a way to specify the correct url so I can connect my credentials?
My deployment for reference:
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
service: n8n-production
name: n8n-production
namespace: n8n-production
spec:
selector:
matchLabels:
service: n8n-production
strategy:
type: RollingUpdate
template:
metadata:
labels:
service: n8n-production
spec:
containers:
- args:
- /bin/sh
- -c
- sleep 5; n8n start
env:
- name: DB_TYPE
value: postgresdb
- name: DB_POSTGRESDB_HOST
value: postgres-production-service.n8n-production.svc.cluster.local
- name: DB_POSTGRESDB_PORT
value: "5432"
- name: DB_POSTGRESDB_DATABASE
value: n8n
- name: DB_POSTGRESDB_USER
valueFrom:
secretKeyRef:
name: postgres-prod-secret
key: POSTGRES_NON_ROOT_USER
- name: DB_POSTGRESDB_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-prod-secret
key: POSTGRES_NON_ROOT_PASSWORD
- configMapRef:
name: n8n-production-secret
- name: N8N_HOST
value: n8n.osp.dev
- name: N8N_PROTOCOL
value: http
- name: N8N_PORT
value: "5678"
image: n8nio/n8n:0.211.1
name: n8n
ports:
- containerPort: 5678
resources:
requests:
cpu: "250m"
memory: "250Mi"
limits:
cpu: "1000m"
memory: "500Mi"
volumeMounts:
- mountPath: /home/node/.n8n
name: n8n-production-claim0
restartPolicy: Always
volumes:
- name: n8n-production-claim0
persistentVolumeClaim:
claimName: n8n-production-claim0
- name: n8n-production-secret
secret:
secretName: n8n-production-secret
- name: postgres-prod-secret
secret:
secretName: postgres-prod-secret
Information on your n8n setup
- n8n version:0.211.1
- Database you’re using (default: SQLite):* postgresql*
- Running n8n with the execution process [own(default), main]:own
- Running n8n via [Docker, npm, n8n.cloud, desktop app]:k8s