Skip to content

NC_PUBLIC_URL not respected in subdirectory reverse proxy format #1033

@alfureu

Description

@alfureu

Please enter the following details

NocoDB used as docker : true
NocoDB version : 0.84.8
Database used in NC_DB URL : pg
Project was created by clicking : New Project by connecting to external database
Database on which spreadsheet is created : pg
OS on which NocoDB is running : CentOS 7.0
Node.js version if running as node : -
Database version : -

Steps To Reproduce

  1. run docker container
  2. define under environments NC_PUBLIC_URL=[sub.domain.tld/nocodb] and NC_BACKEND_URL=[http://IP:port]
  3. try to define nocodb instance instead of subdomain format (e.g. nocodb.domain.tld) as a subdirectory (e.g. sub.domain.tld/nocodb) in nginx or Nginx Proxy Manager (NPM)
  4. Whenever one types sub.domain.tld/nocodb. the NC_PUBLIC_URL is not respected and switches to sub.domain.tld/dashboard; also, the page is clearly available from sub.domain.tld as well, although it is defined in NPM as sub.domain.tld/nocodb

Expected behavior
NC_PUBLIC_URL should be respected and the address should be consequently sub.domain.tld/nocodb/dashboard

Also, please provide detailed documentation for main reverse proxy setups (caddy, nginx, Nginx Proxy Manager, traefik, etc).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions