Skip to content

chore(deploy): remove official-only configs and template the rest - #3575

Merged
bobleer merged 4 commits into
mainfrom
openbitfun/sanitize-deployment-docs
Oct 28, 2026
Merged

bobleer merged 4 commits into
mainfrom
openbitfun/sanitize-deployment-docs

Conversation

@bobleer

@bobleer bobleer commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This branch sanitizes the published deployment docs and configs so the public repository no longer carries official-host operational details, and removes code defaults that coupled self-hosted deployments to the official service.

  • Remove the official website, Playbook, and API gateway Nginx vhosts plus the official release-sync cron.
  • Rename the remaining Nginx templates to generic names and replace official domains, admin IDs, and WAF source ranges with placeholders.
  • Parameterize MiniApp, Skin, and Relay Compose paths, environment-file locations, public origins, and backup roots. Move the legacy market migration tooling to deploy/market-data-migration/.
  • Keep the community self-hosting guides for MiniApp market, Skin market, Relay, and outbound mail, and update component docs and tests for the removed configs.
  • Require MARKET_ADMIN_GITHUB_IDS to be set explicitly instead of defaulting to a production administrator ID.
  • Derive desktop sign-in and completion URLs from the configured OAuth callback origin, and remove the official host from return-target validation.

AI-assisted: yes. Testing level: fully tested for the changed documentation, configuration, and market auth paths.

Validation

  • pnpm run check:repo-hygiene — passed
  • cargo test -p openbitfun-miniapp-market-service — passed (57 tests)
  • cargo fmt -p openbitfun-miniapp-market-service -- --check — passed
  • node --test scripts/product-identity-audit.test.mjs scripts/linux-binaries-manifest.test.mjs — passed
  • node scripts/check-git-object-sizes.mjs --base main --head HEAD — passed
  • nginx -t with the MiniApp, auth, and Relay template sets — passed
  • docker compose ... config -q for MiniApp, Skin, and Relay — passed
  • Markdown relative-link check and git diff --check — passed

Risks

  • The checked-in Nginx templates now use documentation-only proxy ranges and example domains. Operators must replace them before installing; the official host must keep its real WAF ranges.
  • The MiniApp OAuth callback moved from Compose into market.env. Existing deployments must set MARKET_GITHUB_CALLBACK_URL when they use the unified auth origin. Desktop sign-in and completion pages now use that URL's origin.
  • Existing deployments must set MARKET_ADMIN_GITHUB_IDS explicitly. An empty value now means no market administrator instead of granting a built-in account.
  • Relay deployments must set RELAY_PUBLIC_ORIGIN and RELAY_AUTH_ORIGIN; the checked-in defaults are example.com placeholders.

Generated with OpenBitFun

bobleer and others added 4 commits October 28, 2026 09:55
Keep the deployment instructions community users need, but remove the
official host SSH alias, production paths and accounts, hosted domains,
admin IDs, WAF vendor details, and the official New API section. Replace
them with placeholders and point the openbitfun-host directory at its
reusable templates.

Co-authored-by: OpenBitFun <318544290+bitfun-ai@users.noreply.github.com>
Delete the official website, Playbook, API gateway, and release-sync cron entries. Rename the remaining Nginx templates to generic names, replace official domains and proxy ranges with placeholders, and parameterize Compose paths and Relay origins.

Keep the MiniApp, Skin, and Relay self-hosting guides, including legacy market data migration tooling. Update docs and tests for the removed configs.

Co-authored-by: OpenBitFun <318544290+bitfun-ai@users.noreply.github.com>
Require MARKET_ADMIN_GITHUB_IDS to be configured explicitly instead of falling back to a production administrator ID. Derive desktop sign-in and completion URLs from the configured OAuth callback origin so self-hosted deployments keep their own auth facade, and stop using an official host in the return-target validator.

Update the deployment docs and env example for the explicit admin setting.

Co-authored-by: OpenBitFun <318544290+bitfun-ai@users.noreply.github.com>
@bobleer
bobleer merged commit 7a6d61e into main Oct 28, 2026
2 checks passed
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