Fix API meta public origin #50
Labels
No labels
activitypub
actor
admin
ai-safety
article
articles
atproto
bug
cli
configuration
content
dev-environment
docker
enhancement
feature
federation
fediverse
forgejo
garage
health
how-to
logging
markdown
mastodon
media
navigation
opengraph
passkeys
preview
priority:medium
production
release
rendering
s3
settings
setup
status:active
status:done
status:inprogress
technical
webauthn
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit.com#50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Production
/api/v1/metareports internal/default URLs instead of the public Slugkit origin after the npm-backed template migration.Steps to reproduce
slugkit.comwithACTIVITYPUB_PUBLIC_ORIGIN=https://slugkit.combehind k3s/ingress.https://slugkit.com/api/v1/meta.site.url,api.baseUrl, andapi.openapiUrl.Expected behavior
site.urluses the public site origin,https://slugkit.com.api.baseUrluseshttps://slugkit.com/api/v1.api.openapiUrluseshttps://slugkit.com/api/v1/openapi.json.Actual behavior
site.urlfalls back tohttp://localhost:3000whensite_confighas no persisted row.api.baseUrlandapi.openapiUrlcan be derived ashttp://slugkit.com/...from the proxied request URL.ACTIVITYPUB_PUBLIC_ORIGIN=https://slugkit.comis present in the runtime environment but is not applied by the API meta route.Acceptance criteria
ACTIVITYPUB_PUBLIC_ORIGIN.site.url,api.baseUrl, andapi.openapiUrl.npm run buildandnpm testpass.Dependencies
Synced from todu comment by @todu on 2026-06-30T19:00:45.844Z
Review update
erik/slugkit.com#51is open fortask-9fb83661-api-meta-public-originintomain.ACTIVITYPUB_PUBLIC_ORIGIN, proxied production metadata reports HTTPS public URLs, persisted site URLs are preserved unless a public origin is configured, andnpm run build/npm testpassed.Synced from todu comment by @todu on 2026-06-30T19:15:42.635Z
Production verification
erik/slugkit.com#51merged intomain.web-v0.1.34; Forgejo Actions task#40succeeded for commitc52d7c0.slugkit-comupdated to imageevcraddock/slugkit-com:0.1.34and rollout completed successfully.https://slugkit.com/healthreturns version0.1.34.https://slugkit.com/api/v1/metanow reportssite.url=https://slugkit.com,api.baseUrl=https://slugkit.com/api/v1, andapi.openapiUrl=https://slugkit.com/api/v1/openapi.json.slug --site slugkit.com doctor --jsonpassed config, health, meta, packages, openapi, and auth checks.Synced from todu comment by @todu on 2026-06-30T19:29:08.562Z
Close gate: READY
Acceptance criteria verified from recent review and production comments:
ACTIVITYPUB_PUBLIC_ORIGIN/ configured public origin./api/v1/metareportssite.url=https://slugkit.com,api.baseUrl=https://slugkit.com/api/v1, andapi.openapiUrl=https://slugkit.com/api/v1/openapi.json.npm run buildandnpm testpassed.erik/slugkit.com#51was merged, releaseweb-v0.1.34deployed, rollout completed, live health reports0.1.34, and authenticated production doctor passed config, health, meta, packages, openapi, and auth checks.Closing task as done.