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:
dekun
2026-07-17 16:30:58 +08:00
parent 53863559f4
commit 16ef0f31e3
154 changed files with 1998 additions and 27914 deletions
+6
View File
@@ -305,6 +305,12 @@ app.secret_key = os.getenv("FLASK_SECRET_KEY", "crypto_monitor_2026_secret_key")
from lib.instance.instance_embed_lib import attach_embed_templates
attach_embed_templates(app, _REPO_ROOT)
try:
from lib.license.flask_gate import install_license_gate
install_license_gate(app)
except Exception as _lic_err:
print(f"[license] gate: {_lic_err}")
# ====================== 登录配置 ======================
USERNAME = os.getenv("APP_USERNAME", "dekun")