Skip to content

Running sourcegraph under a non-root URL

Created by: yasushi-saito

Question description

I'm trying to run sourcegraph behind a GCP GKE Ingress rule, where an URL https://int.siliconbox.com/sourcegraph is routed to the sourcegraph docker container at port 7080. I can't get that to work.

When I set the ingress route URL to https://int.siliconbox.com and set externalUrl config parameter to the same stiring, everthing works fine.

But when I set both the route URL and externalUrl to https://int.siliconbox.com/sourcegraph, sourcegraph tries to redirect the request to https://int.siliconbox.com/sign-in?returnTo=%2F, which doesn't exist.

Is there some config option that I'm missing?