WICHTIG: DB_PATH per ENV ueberschreibbar; data-Symlink aus Repo entfernt
Verhindert dass Staging und Live versehentlich dieselbe DB nutzen (Symlink data wurde frueher beim git clone mitgeklont und zeigte auf das gleiche physische Verzeichnis /home/claude-dev/osint-data). Staging muss jetzt DB_PATH in der .env explizit setzen.
Dieser Commit ist enthalten in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@ __pycache__/
|
|||||||
logs/
|
logs/
|
||||||
data/
|
data/
|
||||||
.venv/
|
.venv/
|
||||||
|
data
|
||||||
|
|||||||
1
data
1
data
@@ -1 +0,0 @@
|
|||||||
/home/claude-dev/osint-data
|
|
||||||
@@ -10,7 +10,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|||||||
DATA_DIR = os.path.join(BASE_DIR, "data")
|
DATA_DIR = os.path.join(BASE_DIR, "data")
|
||||||
LOG_DIR = os.path.join(BASE_DIR, "logs")
|
LOG_DIR = os.path.join(BASE_DIR, "logs")
|
||||||
STATIC_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "static")
|
STATIC_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "static")
|
||||||
DB_PATH = os.path.join(DATA_DIR, "osint.db")
|
DB_PATH = os.environ.get("DB_PATH") or os.path.join(DATA_DIR, "osint.db")
|
||||||
|
|
||||||
# JWT
|
# JWT
|
||||||
_JWT_SECRET = os.environ.get("JWT_SECRET", "")
|
_JWT_SECRET = os.environ.get("JWT_SECRET", "")
|
||||||
|
|||||||
In neuem Issue referenzieren
Einen Benutzer sperren