Traefik with single hostname
Update installation wizard to support running GGCE on a single hostname (i.e. uiCname === apiCname
).
Configure API to run on a virtual path /server
this sorts out JSP/MVC redirects and such.
ggce.local/oauth -> API/server/oauthggce.local/api -> API/server/api- ggce.local/GRINGlobal -> API/server/GRINGlobal
- ggce.local/server -> API/server
- ggce.local -> UI
Traefik configuration:
-
PathPrefix(/api, /oauth, /GRINGlobal)
https://doc.traefik.io/traefik/routing/routers/#rule - Update these paths only to include
/server
usingReplacePathRegex
https://doc.traefik.io/traefik/middlewares/http/replacepathregex/
- "traefik.http.middlewares.test-replacepathregex.replacepathregex.regex=^/(api/|oauth/|GRINGlobal)(.*)"
- "traefik.http.middlewares.test-replacepathregex.replacepathregex.replacement=/server/$$1$$2"