Search engine and link preview metadata for public status pages and the app's public pages, matching what the landing page got.
Status pages (internal/statuspage)
<head> carries description (plain text of the page's description, else "Current status of X: …"), canonical, hreflang per language plus x-default, Open Graph and Twitter tags.
?lang=de|en shows the page in that language and becomes its canonical address. Without it the language follows Accept-Language as before.
/<slug>/og.png (or /og.png on a custom domain): a 1200×630 PNG with the page name, current status and status colour, cached per page and language until title or status change. It is drawn with the new internal/ogimage package (Go fonts via golang.org/x/image, no external service).
sitemap.xml per page. /robots.txt disallows feeds, the API and subscription forms, and names the sitemap on custom domains.
Component, legal and subscription pages get noindex.
App (internal/api, cloud edition only)
/login, /signup and /legal/:kind get the same tags, with /og.png showing a generic UptimeSebi card per language.
/robots.txt allows only those pages, and /sitemap.xml lists them (signup only while sign-up is open, legal pages only when hosted here).
Every other page is noindex, nofollow. Self-hosted installations serve Disallow: /, no sitemap and noindex everywhere.
?lang= works on all pages.
Absolute URLs use UPTIME_PUBLIC_URL for the app. The status page server uses the request host, with https when served over TLS or X-Forwarded-Proto: https.
Test plan
TestSearchAndPreviewMetadata (statuspage): tags, ?lang= canonical, generated description, noindex pages, og.png, sitemap, robots for custom domain and shared host
## Summary
Search engine and link preview metadata for public status pages and the app's public pages, matching what the landing page got.
**Status pages** (`internal/statuspage`)
- `<head>` carries description (plain text of the page's description, else "Current status of X: <status>…"), canonical, hreflang per language plus x-default, Open Graph and Twitter tags.
- `?lang=de|en` shows the page in that language and becomes its canonical address. Without it the language follows `Accept-Language` as before.
- `/<slug>/og.png` (or `/og.png` on a custom domain): a 1200×630 PNG with the page name, current status and status colour, cached per page and language until title or status change. It is drawn with the new `internal/ogimage` package (Go fonts via `golang.org/x/image`, no external service).
- `sitemap.xml` per page. `/robots.txt` disallows feeds, the API and subscription forms, and names the sitemap on custom domains.
- Component, legal and subscription pages get `noindex`.
**App** (`internal/api`, cloud edition only)
- `/login`, `/signup` and `/legal/:kind` get the same tags, with `/og.png` showing a generic UptimeSebi card per language.
- `/robots.txt` allows only those pages, and `/sitemap.xml` lists them (signup only while sign-up is open, legal pages only when hosted here).
- Every other page is `noindex, nofollow`. Self-hosted installations serve `Disallow: /`, no sitemap and noindex everywhere.
- `?lang=` works on all pages.
Absolute URLs use `UPTIME_PUBLIC_URL` for the app. The status page server uses the request host, with https when served over TLS or `X-Forwarded-Proto: https`.
## Test plan
- [x] `TestSearchAndPreviewMetadata` (statuspage): tags, `?lang=` canonical, generated description, noindex pages, og.png, sitemap, robots for custom domain and shared host
- [x] `TestPublicPagesForSearchEngines` (api): cloud login/signup tags, robots, sitemap, og.png, console noindex, self-hosted fully closed
- [x] `internal/ogimage` tests: size, wrapping and ellipsis for long names
- [x] Dev stack: `/dev` status page tags and preview image checked
- [x] golangci-lint 0 issues. In the full parallel run only `TestCheckerNetwork` failed, by timeout; alone it passes twice.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Status pages describe themselves to search engines and link previews:
description (from the page's text, else its status), canonical address,
language versions via ?lang= with hreflang and x-default, Open Graph and
Twitter tags, and a 1200x630 preview image per page and language showing
its name and current status (/og.png). Each page has a sitemap.xml, and
robots.txt keeps crawlers off feeds, the API and subscription forms.
Component, legal and subscription pages are noindex.
In the cloud edition the app's sign-in, sign-up and legal pages get the
same tags with a preview image of their own, plus robots.txt and a
sitemap. Everything signed in stays noindex, and self-hosted
installations keep the whole app out of search engines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi
merged commit d91d600c90 into main2026-11-28 21:58:06 +00:00
Sebi
deleted branch feat/seo-metadata2026-11-28 21:58:08 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Search engine and link preview metadata for public status pages and the app's public pages, matching what the landing page got.
Status pages (
internal/statuspage)<head>carries description (plain text of the page's description, else "Current status of X: …"), canonical, hreflang per language plus x-default, Open Graph and Twitter tags.?lang=de|enshows the page in that language and becomes its canonical address. Without it the language followsAccept-Languageas before./<slug>/og.png(or/og.pngon a custom domain): a 1200×630 PNG with the page name, current status and status colour, cached per page and language until title or status change. It is drawn with the newinternal/ogimagepackage (Go fonts viagolang.org/x/image, no external service).sitemap.xmlper page./robots.txtdisallows feeds, the API and subscription forms, and names the sitemap on custom domains.noindex.App (
internal/api, cloud edition only)/login,/signupand/legal/:kindget the same tags, with/og.pngshowing a generic UptimeSebi card per language./robots.txtallows only those pages, and/sitemap.xmllists them (signup only while sign-up is open, legal pages only when hosted here).noindex, nofollow. Self-hosted installations serveDisallow: /, no sitemap and noindex everywhere.?lang=works on all pages.Absolute URLs use
UPTIME_PUBLIC_URLfor the app. The status page server uses the request host, with https when served over TLS orX-Forwarded-Proto: https.Test plan
TestSearchAndPreviewMetadata(statuspage): tags,?lang=canonical, generated description, noindex pages, og.png, sitemap, robots for custom domain and shared hostTestPublicPagesForSearchEngines(api): cloud login/signup tags, robots, sitemap, og.png, console noindex, self-hosted fully closedinternal/ogimagetests: size, wrapping and ellipsis for long names/devstatus page tags and preview image checkedTestCheckerNetworkfailed, by timeout; alone it passes twice.🤖 Generated with Claude Code
https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3