modified: app.py
This commit is contained in:
4
app.py
4
app.py
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user