new env variables

This commit is contained in:
Hayden 2021-01-03 12:11:36 -09:00
parent d229b6c8ef
commit 80ac39c87d

View file

@ -1,15 +1,14 @@
import mongoengine
from settings import DB_HOST, DB_PASSWORD, DB_PORT, DB_USERNAME
from settings import DB_HOST, DB_PASSWORD, DB_PORT, DB_USERNAME, MEALIE_DB_NAME
def global_init():
mongoengine.register_connection(
alias="core",
name="mealie",
name=MEALIE_DB_NAME,
host=DB_HOST,
port=int(DB_PORT),
username=DB_USERNAME,
password=DB_PASSWORD,
authentication_source="admin",
)