-
-
Notifications
You must be signed in to change notification settings - Fork 371
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
Cleanup server env settings #3670
Conversation
I added a comment about the naming. Did you decided against it or missed it? |
we should update/ehnhance https://woodpecker-ci.org/docs/development/ui ? |
Deployment of preview was successful: https://woodpecker-ci-woodpecker-pr-3670.surge.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM in general, personally I would prefer an INTERNAL_
prefix instead of DEV_
.
I've drawn a diagram. Feel free to edit. |
If we decided to use |
…r into cleanup-host-settings
The |
I named it |
Co-authored-by: Robert Kaussow <[email protected]>
With the latest changes, it's completely broken for me:
After clicking on the login button in Woodpecker, it tries to redirect to |
That seems to be correct: WOODPECKER_HOST: http://localhost:8000
WOODPECKER_GITEA: true
WOODPECKER_FORGE_URL: http://woodpecker-gitea:3000 # forge url used by woodpecker to call forge
WOODPECKER_INTERNAL_FORGE_OAUTH_HOST: http://localhost:3000 # public forge url
WOODPECKER_INTERNAL_WEBHOOK_HOST: http://woodpecker-server:8000 |
Now I'm fully confused.... |
What's required: The forge server needs to be reachable from the browser and the wp-server container:
Same applies for the webhook part. |
|
OK, let me rephrase it. If we now have an environment where the url needed for browser and container access is not the same, I need to flip it? That's IMO a bad UX. |
Some more tests:
Requirements:
Question: What's the correct configuration? |
That url is coming from gitea itself. You have to set the correct public url in gitea as well. Something like: |
If it is in the docs, then doesn't look "internal" to me anymore (#3670 (comment)).
Well, I treat it like that. That was the meaning of Seems, it is still confusing...
Doesn't look like public faced URL... #3669 (reply in thread) Draw what you want to achieve, then it can be discussed. It difficult to understand stuff like Though, requirements section in #3670 (comment) seems right to me. |
Looks like we have (again) a communication issue. It's probably up to me then, however, no idea how to improve it. From my perspective, I have clearly communicated what my problem is and what I would expect from these settings.
OK, in that case the env vars seem to work as expected then. The rest of the issue seems to be related to my localhost dev setup, can solve that somehow... |
As other users might be confused by the |
…r into cleanup-host-settings
IMO, |
Co-authored-by: Robert Kaussow <[email protected]> Co-authored-by: Robert Kaussow <[email protected]>
ref #3669
Following the sequence from the image (a rather advanced setup, for simple setups most options could be avoided) all possibly needed config values are:
WOODPECKER_HOST
address of woodpecker UI / api (needs to be accessible by browser)WOODPECKER_OAUTH_HOST
address of the forge (needs to be accessible by browser)WOODPECKER_FORGE_URL
address of the forge (needs to be accessible by woodpecker-server)WOODPECKER_WEBHOOK_HOST
address of woodpecker UI / api (needs to be accessible by forge)Namings of the env variables are not fixed yet and suggestions if they should have a prefix like
DEV_
/INTERNAL_
or not are very welcome (we just need to add old namings to not add breaking changes).