[GH-ISSUE #2017] Host behind a reverse proxy on a subfolder #609

Closed
opened 2026-03-07 20:51:59 +03:00 by kerem · 0 comments
Owner

Originally created by @JeanRessouche on GitHub (Sep 22, 2023).
Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/2017

Hi, my scenario:
nginx or caddy reverse proxy as a docker container send /tools/db to http://dbeavercontainer:8978

Caddy2 config to do so:

  redir /tools/db /tools/db/
  handle /tools/db/* {
    reverse_proxy http://dbeaver:8978 {
      header_up Host {http.reverse_proxy.upstream.host}
      header_up X-Real-IP {http.request.remote}
    }
  }

Reading the doc, i saw that we can edit cloudbeaver.conf and set server.rootURI & server.serviceURI to achieve my goal (i think)

{
    server: {
        serverPort: 8978,
        serverHost: "localhost",
        serverName: "CloudBeaver Sample Server",

        workspaceLocation: "workspace",
        contentRoot: "web",
        driversLocation: "drivers",

        rootURI: "/tools/db/",
        serviceURI: "/tools/db/api/",
        ...
}

But this doesn't work. Static content is correctly returned bu api calls end with an error 404.
I tried mutiple variations and still fail :'(

image

Any help ?

Originally created by @JeanRessouche on GitHub (Sep 22, 2023). Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/2017 Hi, my scenario: nginx or caddy reverse proxy as a docker container send /tools/db to http://dbeavercontainer:8978 Caddy2 config to do so: ``` redir /tools/db /tools/db/ handle /tools/db/* { reverse_proxy http://dbeaver:8978 { header_up Host {http.reverse_proxy.upstream.host} header_up X-Real-IP {http.request.remote} } } ```` Reading the doc, i saw that we can edit `cloudbeaver.conf` and set `server.rootURI` & `server.serviceURI` to achieve my goal (i think) ``` { server: { serverPort: 8978, serverHost: "localhost", serverName: "CloudBeaver Sample Server", workspaceLocation: "workspace", contentRoot: "web", driversLocation: "drivers", rootURI: "/tools/db/", serviceURI: "/tools/db/api/", ... } ``` But this doesn't work. Static content is correctly returned bu api calls end with an error 404. I tried mutiple variations and still fail :'( ![image](https://github.com/dbeaver/cloudbeaver/assets/8854025/80e08f5a-84db-401a-b631-54b7282778b9) Any help ?
kerem 2026-03-07 20:51:59 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudbeaver#609
No description provided.