Closed koltyakov closed 1 year ago
I had to change the environment variables to something like this:
frontend:
image: codecov/enterprise-frontend:latest-stable
environment:
- CODECOV_BASE_HOST=a-custom-url-through-ngrok.ngrok-free.app
- CODECOV_API_HOST=a-custom-url-through-ngrok.ngrok-free.app
- CODECOV_IA_HOST=a-custom-url-through-ngrok.ngrok-free.app
- CODECOV_SCHEME=https
@fmdoe thank you for response!
With external URLs provided to frontent
container, the starter page opens, yet when logging in with GitHub redirects it routes to https://a-custom-url-through-ngrok.ngrok-free.app/login/gh
(even while /login/github
is set up in the callback URL) and it's not available. So setting up setup -> codecov_url
and frontent -> envs
is not enough.
Did anyone managed exposing recent Codecov (docker compose, images versions)? Which instructions did you follow as cloning current repo and following Self-Hosted Configuration Guide seems not enough?
UPD: Actually, setting frontent -> envs
worked. On my first attempt, I missed I did a typo in CODECOV_BASE_HOST which was them cached in the browser.
I'm happy to close the issue as resolved. Yet, maybe it's reasonable mapping the frontent container variables from the config?
I agree that would be a nice improvement. The logic that handles this is here. We have not added parsing the yaml at this time but welcome PRs 😄 .
Closing the issue as resolved for now.
Hi and thank you for going OpenSourcing your wonderful product!
I'm trying to lift a POC exposing is via an external URL through ngrok.
When I'm reaching the URL I'm getting the loading screen (with umbrella animation) and the following errors:
So even while having
codecov_url
provided due something else some calls are sent tohttp://localhost:8080
, if to modifyCODECOV_
env vars infrontend
in the docker compose the error is exactly the same with same 8080 port.I can't see anything but /docs/configuration#codecov-url regarding providing a custom URL. Am I missing something obvious?