new env variables

This commit is contained in:
Hayden 2021-01-03 12:09:40 -09:00
parent 945ba0a562
commit a2e278b344

View file

@ -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")