Repository navigation
chore(deploy): remove official-only configs and template the rest - #3575
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
deploy/market-data-migration/.MARKET_ADMIN_GITHUB_IDSto be set explicitly instead of defaulting to a production administrator ID.AI-assisted: yes. Testing level: fully tested for the changed documentation, configuration, and market auth paths.
Validation
pnpm run check:repo-hygiene— passedcargo test -p openbitfun-miniapp-market-service— passed (57 tests)cargo fmt -p openbitfun-miniapp-market-service -- --check— passednode --test scripts/product-identity-audit.test.mjs scripts/linux-binaries-manifest.test.mjs— passednode scripts/check-git-object-sizes.mjs --base main --head HEAD— passednginx -twith the MiniApp, auth, and Relay template sets — passeddocker compose ... config -qfor MiniApp, Skin, and Relay — passedgit diff --check— passedRisks
market.env. Existing deployments must setMARKET_GITHUB_CALLBACK_URLwhen they use the unified auth origin. Desktop sign-in and completion pages now use that URL's origin.MARKET_ADMIN_GITHUB_IDSexplicitly. An empty value now means no market administrator instead of granting a built-in account.RELAY_PUBLIC_ORIGINandRELAY_AUTH_ORIGIN; the checked-in defaults areexample.complaceholders.Generated with OpenBitFun