Add Doris Kitchen household recipe app
This commit is contained in:
18
home/doris-kitchen/app/config.py
Normal file
18
home/doris-kitchen/app/config.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from dataclasses import dataclass
|
||||
import os
|
||||
|
||||
|
||||
@dataclass
|
||||
class Settings:
|
||||
app_host: str = os.getenv("DORIS_KITCHEN_HOST", "0.0.0.0")
|
||||
app_port: int = int(os.getenv("DORIS_KITCHEN_PORT", "8092"))
|
||||
app_base_url: str = os.getenv("DORIS_KITCHEN_BASE_URL", "http://localhost:8092")
|
||||
state_dir: str = os.getenv("DORIS_KITCHEN_STATE_DIR", "/tmp/doris-kitchen-state")
|
||||
kitchenowl_base_url: str = os.getenv("KITCHENOWL_BASE_URL", "https://owl.paccoco.com")
|
||||
kitchenowl_api_token: str = os.getenv("KITCHENOWL_API_TOKEN", "")
|
||||
kitchenowl_household_id: int = int(os.getenv("KITCHENOWL_HOUSEHOLD_ID", "1"))
|
||||
search_result_limit: int = int(os.getenv("DORIS_KITCHEN_SEARCH_RESULT_LIMIT", "6"))
|
||||
auto_import_threshold: int = int(os.getenv("DORIS_KITCHEN_AUTO_IMPORT_THRESHOLD", "96"))
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user