Skip to content

n8n hosted on a sub-path #249

@marisbest2

Description

@marisbest2

When I try to set n8n on a subpath like <my-domain>/n8n and then go to that url, I get the first HTML document loaded, but then all subsequent requests (posthog, polyfill, config, etc) all ALSO return that same html document.

main:
  config:
    n8n:
      log:
        level: info
      editor_base_url: "https://<my domain>/n8n"

  # Reference secrets for database password and encryption key
  extraEnv:
    DB_POSTGRESDB_PASSWORD:
      valueFrom: 
        secretKeyRef: 
          name: <my secret>
          key: postgres-password
    DB_POSTGRESDB_SSL_CERT:
      valueFrom:
        secretKeyRef:
          name: <my secret>
          key: ssl_cert
    DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED: 
      value: "false"
    N8N_PATH:
      value: "/n8n/"
    N8N_PORT:
      value: "5678"
    N8N_HOST:
      value: "<my domain>"



ingress:
  enabled: true
  className: external-nginx
  hosts:
    - host: '<my domain>'
      paths:
        - /n8n/
  tls:
    - secretName: <my-tls-secret>
      hosts:
        - <my domain>

  annotations:
    cert-manager.io/cluster-issuer: external-issuer

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions