Closed JeanRessouche closed 11 months ago
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)
cloudbeaver.conf
server.rootURI
server.serviceURI
{ 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 :'(
Any help ?
Ok, correct way was simply...
rootURI: "/tools/db/", serviceURI: "/api/",
Hi, my scenario: nginx or caddy reverse proxy as a docker container send /tools/db to http://dbeavercontainer:8978
Caddy2 config to do so:
Reading the doc, i saw that we can edit
cloudbeaver.conf
and setserver.rootURI
&server.serviceURI
to achieve my goal (i think)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 :'(
Any help ?