Skip to content

config: service.public_url is the address links to the page start with - #126

Merged
krokicki merged 1 commit into
mainfrom
public-url
Dec 1, 2026
Merged

krokicki merged 1 commit into
mainfrom
public-url

Conversation

@krokicki

@krokicki krokicki commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Why

Behind a reverse proxy the page is opened under another address (https on 443) than the one buffer-api listens on. service.url is 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_url is public_url, else url, 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).
  • buffer-api still listens on service.url and the workers still call it there.
  • The host of public_url is 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_url in mia.yaml and 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

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>
@krokicki
krokicki merged commit 946005a into main Dec 1, 2026
1 check passed
@krokicki
krokicki deleted the public-url branch December 1, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant