-
-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a separate WOODPECKER_GITEA_API_URL for easier local setup #3470
Comments
There's a hidden flag https://github.com/woodpecker-ci/woodpecker/blob/main/cmd%2Fserver%2Fflags.go#L486-L492 which should work for you I think |
@everflux did this solve your issue? |
I looks promising, I did not have time for testing, though. If it indeed solves the issue it might be very helpful to add it to the documentation. |
It does not seem to work for my environment. (Context: I want to give woodpecker/gitea based trainings using a minikube cluster with no external domains) This is my setup: The oauth redirect is performed to http://gitea-http.gitea:3000 it seems the dev setting is overridden by the gitea url. |
Maybe I was wrong and the dev env sets the URL for oauth redirection... Not sure, I can try to take a look in the next days |
As a side note, we have a gitpod setup which we used quite successful for workshop purposes some time ago. |
closes #3470 --------- Co-authored-by: Robert Kaussow <xoxys@rknet.org>
Clear and concise description of the problem
When running inside kubernetes/docker without externally reachable domains, the .local and .localhost domains can be used for browser based access.
These point to 127.0.0.1 which does not work for inter-container connectivity.
Suggested solution
An optional, separate env for the API of gitea server for OAuth and API requests that is separate from the URL that is accessed by the browser of the user would fix that.
Alternative
No response
Additional context
No response
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]The text was updated successfully, but these errors were encountered: