mirror of
https://github.com/andrey271192/keenetic-dns-routes.git
synced 2026-09-20 14:42:01 +00:00
18 lines
438 B
Python
18 lines
438 B
Python
import os
|
|
from pathlib import Path
|
|
|
|
from dotenv import load_dotenv
|
|
|
|
load_dotenv()
|
|
|
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
|
DATA_DIR = BASE_DIR / "data"
|
|
STORE_FILE = DATA_DIR / "store.json"
|
|
|
|
HOST = os.getenv("HOST", "0.0.0.0")
|
|
PORT = int(os.getenv("PORT", "8001"))
|
|
ADMIN_PASSWORD = os.getenv("ADMIN_PASSWORD", "admin")
|
|
|
|
KEENETIC_LOGIN = os.getenv("KEENETIC_LOGIN", "admin")
|
|
KEENETIC_PASSWORD = os.getenv("KEENETIC_PASSWORD", "")
|