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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user