mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-06 14:05:21 +02:00
new env variables
This commit is contained in:
parent
945ba0a562
commit
a2e278b344
1 changed files with 3 additions and 1 deletions
|
@ -6,10 +6,12 @@ import dotenv
|
||||||
CWD = Path(__file__).parent
|
CWD = Path(__file__).parent
|
||||||
ENV = CWD.joinpath(".env")
|
ENV = CWD.joinpath(".env")
|
||||||
dotenv.load_dotenv(ENV)
|
dotenv.load_dotenv(ENV)
|
||||||
PORT = 9000
|
|
||||||
|
|
||||||
|
# General
|
||||||
|
PORT = int(os.getenv("mealie_port", 9000))
|
||||||
|
|
||||||
# Mongo Database
|
# Mongo Database
|
||||||
|
MEALIE_DB_NAME = os.getenv("mealie_db_name", "mealie")
|
||||||
DB_USERNAME = os.getenv("db_username", "root")
|
DB_USERNAME = os.getenv("db_username", "root")
|
||||||
DB_PASSWORD = os.getenv("db_password", "example")
|
DB_PASSWORD = os.getenv("db_password", "example")
|
||||||
DB_HOST = os.getenv("db_host", "mongo")
|
DB_HOST = os.getenv("db_host", "mongo")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue