Pay-then-profile join desk with live card, S3 upload fallback, hydration-safe drafts; document on test9 README. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
507 B
Python
22 lines
507 B
Python
from __future__ import annotations
|
|
|
|
import os
|
|
from pathlib import Path
|
|
|
|
NOTIFY_ENABLED = os.getenv("NOTIFY_ENABLED", "1").strip().lower() not in {
|
|
"0",
|
|
"false",
|
|
"no",
|
|
"off",
|
|
}
|
|
|
|
DATA_DIR = Path(os.getenv("NOTIFY_DATA_DIR", "/var/lib/nomadro/notify"))
|
|
if not DATA_DIR.exists():
|
|
DATA_DIR = (
|
|
Path(os.getenv("NOTIFY_DATA_DIR_LOCAL", "")).resolve()
|
|
if os.getenv("NOTIFY_DATA_DIR_LOCAL")
|
|
else Path.cwd() / "data" / "notify"
|
|
)
|
|
|
|
DB_PATH = DATA_DIR / "notify.sqlite3"
|