Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug: Reverse proxy by nocodb #6147

Closed
1 task done
lolgopher opened this issue Aug 9, 2023 · 2 comments
Closed
1 task done

🐛 Bug: Reverse proxy by nocodb #6147

lolgopher opened this issue Aug 9, 2023 · 2 comments
Assignees
Labels
🐛 Type: Bug Something is broken or incorrect unexpectedly.
Milestone

Comments

@lolgopher
Copy link
Contributor

Please confirm if bug report does NOT exists already ?

  • I confirm there is no existing issue for this

Steps to reproduce ?

I want to set up a reverse proxy for nginx and use nocodb. However, some errors occur.

setting

  • nginx.conf
location /nocodb/dashboard {
    proxy_pass http://nocodb.default.svc.cluster.local:80/nocodb/dashboard;

    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /nocodb/ {
    proxy_pass http://nocodb.default.svc.cluster.local:80/;

    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
  • nocodb env
- name: NC_DASHBOARD_URL
  value: /nocodb/dashboard
- name: NC_PUBLIC_URL
  value: "https://call.kep.dev/nocodb"
- name: NUXT_PUBLIC_NC_BACKEND_URL
  value: "https://call.kep.dev/nocodb"

error case

  1. accessing call.kep.dev/nocodb/
스크린샷 2023-08-09 오전 9 51 09
  1. open swagger page
스크린샷 2023-08-09 오전 9 58 25

Desired Behavior

  • All requests are correctly reverse proxy
  • No any error

Project Details

Node: v16.20.0
Arch: x64
Platform: linux
Docker: false
RootDB: mysql2
PackageVersion: 0.109.5

NocoDB used as docker : true
NocoDB version :  0.109.5
Database used in NC_DB URL  : mysql
Project was created  by clicking : New Project
Database on which spreadsheet is created : mysql
OS on which NocoDB is running : linux
Node.js version if running as node : v16.20.0
Database version : mysql 5.7.33

Attachments

No response

@mertmit
Copy link
Member

mertmit commented Aug 9, 2023

Looks like a duplicate of #1033
Please see if setups provided in this issue help you or try moving to subdomain based proxy setup.

@wingkwong wingkwong added the 🐛 Type: Bug Something is broken or incorrect unexpectedly. label Aug 10, 2023
@lolgopher
Copy link
Contributor Author

I have to use it as a subdirectory based proxying.

I'm opening a PR for this #6157

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Type: Bug Something is broken or incorrect unexpectedly.
Projects
None yet
Development

No branches or pull requests

4 participants