User edition: prune docs, license gate, obfuscate core lib.
Keep deploy/basic docs only; integrate sq.bz121.com license client; encrypt strategy/trade/key_monitor/options/hedge_plan for release. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -768,6 +768,13 @@ async def _hub_lifespan(_app: FastAPI):
|
||||
|
||||
|
||||
app = FastAPI(title="复盘系统中控", docs_url=None, redoc_url=None, lifespan=_hub_lifespan)
|
||||
try:
|
||||
from lib.license.fastapi_gate import install_license_middleware
|
||||
|
||||
install_license_middleware(app)
|
||||
except Exception as _lic_err:
|
||||
print(f"[license] hub: {_lic_err}")
|
||||
|
||||
STATIC_DIR = DIR / "static"
|
||||
_REPO_STATIC = _REPO_ROOT / "lib" / "common" / "static"
|
||||
_AI_REVIEW_RENDER_JS = _REPO_STATIC / "ai_review_render.js"
|
||||
|
||||
Reference in New Issue
Block a user