modified: app.py

This commit is contained in:
2026-06-23 15:49:19 -04:00
parent f6f6ae3165
commit 0e91ff9874

4
app.py
View File

@@ -40,6 +40,9 @@ app.config['SECRET_KEY'] = 'seki_super_secret_key_99'
# --- PORT ---
PORT = int(os.environ.get('PORT', 5000))
# --- MODE ---
SEKIPOS_MODE = os.environ.get('SEKIPOS_MODE', 'desktop')
# --- SYNC SECRET ---
SYNC_SECRET = os.environ.get('SEKIPOS_SYNC_SECRET', '').strip()
if SEKIPOS_MODE == 'server' and not SYNC_SECRET:
@@ -56,7 +59,6 @@ os.makedirs(CACHE_DIR, exist_ok=True)
app.config['CACHE_DIR'] = CACHE_DIR
# --- INSTANCE CONFIG ---
SEKIPOS_MODE = os.environ.get('SEKIPOS_MODE', 'desktop')
INSTANCE_FILE = os.path.join(DB_DIR, 'instance.json')
if not os.path.exists(INSTANCE_FILE):