Repository navigation
config: service.public_url is the address links to the page start with - #126
Merged
Merged
Conversation
Behind a proxy the page is opened under another address than the one buffer-api listens on. service.public_url names it; ServiceCfg.page_url (public_url, else url) is what timeline entries, the mirrored issues, job links and the consumer's URL are built from. buffer-api still binds service.url and the workers call it there. Its host is one of the deployment's own and is never approved. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Behind a reverse proxy the page is opened under another address (https on 443) than the one buffer-api listens on.
service.urlis both the address buffer-api binds and the one the workers call, so it cannot name the proxy's address, and every link to the page carried the internal one.What
service.public_url(optional): where a person opens the page, e.g.https://host.example.org.ServiceCfg.page_urlispublic_url, elseurl, with no trailing slash. Everything that links to the page is built from it: timeline entries, the mirrored GitHub issues, job links, the repair agent's job link, and the URL shown to a consumer (GET /meta, the ready comment).service.urland the workers still call it there.public_urlis one of the deployment's own hosts and is never offered or approved.Unset, nothing changes. Links already written keep the address they were written with.
Deploying
Set
service.public_urlinmia.yamland restart. Consumers that copy the new URL read through the proxy.Checks
ruff,mypy, and the tests covering the config, own hosts, the page and the link builders.@StephanPreibisch @jakobtroidl