frontend icon indicating copy to clipboard operation
frontend copied to clipboard

How to setup the context?

Open rrialq opened this issue 4 years ago • 4 comments

I've just launch the api server jar in port localhost:8080/dtrack, and I would like to deploy the frontend in a context different than root. When I use the Apache with frontend files in root context and API_SERVER_URL=http://localhost:8080/dtrack all works nice.

But when I move the frontend files to another context it doesn't works. Frontend seems to expect files on root context. Is there any variable I could change to point to the new context?

rrialq avatar Jan 03 '22 16:01 rrialq

Support for non-root contexts was removed in a prior release. If you have nginx in front of the frontend, you should be able to change the context with nginx config.

stevespringett avatar Jan 03 '22 16:01 stevespringett

The use of ngingx or Apache to change the context (and rewriting all the hrefs needed) involves CPU resources only for setting the right context, and should be avoided. If this is the only way to solve my need I will do it, but I think it was a big error removing the non-root context support.

rrialq avatar Jan 04 '22 09:01 rrialq

The use of ngingx or Apache to change the context (and rewriting all the hrefs needed) involves CPU resources only for setting the right context, and should be avoided.

Agreed.

If this is the only way to solve my need I will do it, but I think it was a big error removing the non-root context support.

With OIDC support and the amount of bugs stemming from non-root contexts, removing it was required to move the project forward.

stevespringett avatar Jan 04 '22 15:01 stevespringett

@rrialq Did you manage to set this up using apache? Would you mind sharing the configuration?

check-fate avatar Feb 25 '25 16:02 check-fate