Skip to content

Self host rework - #92

Merged
Lethalchip merged 18 commits into
mainfrom
self-host-rework
May 12, 2026
Merged

Lethalchip merged 18 commits into
mainfrom
self-host-rework

Conversation

@Lethalchip

@Lethalchip Lethalchip commented May 12, 2026 •

Copy link
Copy Markdown
Member

Summary

Finishes the self-host-rework branch. Pogly Standalone is now self-host only and ships as a single Docker image that supports both anonymous-token (Mode 1) and third-party OIDC (Mode 2) auth, with the mode chosen at runtime via -e flags rather than at build time.

The original CI/docker build failure is also fixed: the Dockerfile was pulling clockworklabs/spacetime:latest (now v2.x), which is no longer ABI-compatible with the v1.7.0 SpacetimeDB.Runtime pinned in server/StdbModule.csproj.

See docs/SELF_HOSTING.md for the full user-facing rundown.

What changed

  • Docker + CI pinned to SpacetimeDB v1.7.0; entrypoint and Caddyfile updated for the v1.x CLI/API.
  • Runtime OIDC config injection via /config.js (entrypoint writes it from -e env vars; SPA reads window.POGLY_RUNTIME_CONFIG).
  • Sentinel-based publish skip so restarting with a persistent /stdb volume doesn't trigger 401-ownership errors.
  • Connection dropdown: docker preset replaces cloud.
  • All standalone.pogly.gg / cloud.pogly.gg origin sentinels removed; same-origin defaults everywhere.
  • New docs/SELF_HOSTING.md; README points at it.

Test plan

  • Local docker build succeeds against pinned v1.7.0 base.
  • Mode 1 round-trip: connect, onboard, place element, reload, element persists.
  • Mode 2 round-trip with SpacetimeAuth: /config.js reflects env vars, OIDC overlay shows, sign-in works.
  • Persistent volume across restarts: sentinel skips republish, canvas state preserved.
  • Wipe-and-recreate: volume delete forces fresh publish + new onboarding.
  • CI docker workflow goes green on this branch.

@Lethalchip Lethalchip self-assigned this May 12, 2026
@Dynrothe
Dynrothe self-requested a review May 12, 2026 05:53
@Lethalchip
Lethalchip merged commit 027a980 into main May 12, 2026
4 of 5 checks passed
@Lethalchip
Lethalchip deleted the self-host-rework branch May 12, 2026 05:55
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.

2 participants