From a2e278b3444ae5bee24e808d837ac96497625795 Mon Sep 17 00:00:00 2001 From: Hayden Date: Sun, 3 Jan 2021 12:09:40 -0900 Subject: [PATCH] new env variables --- mealie/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mealie/settings.py b/mealie/settings.py index 0998d449..5b3fb460 100644 --- a/mealie/settings.py +++ b/mealie/settings.py @@ -6,10 +6,12 @@ import dotenv CWD = Path(__file__).parent ENV = CWD.joinpath(".env") dotenv.load_dotenv(ENV) -PORT = 9000 +# General +PORT = int(os.getenv("mealie_port", 9000)) # Mongo Database +MEALIE_DB_NAME = os.getenv("mealie_db_name", "mealie") DB_USERNAME = os.getenv("db_username", "root") DB_PASSWORD = os.getenv("db_password", "example") DB_HOST = os.getenv("db_host", "mongo")