diff --git a/app/app.py b/app/app.py index dacad95..351fe1f 100644 --- a/app/app.py +++ b/app/app.py @@ -19,8 +19,9 @@ instanceLocation = str(config['BRANDING']['instanceLocation']) databaseUsername = str(config['DATABASE']['username']) databasePassword = str(config['DATABASE']['password']) databaseName = str(config['DATABASE']['name']) +databaseHost = str(config['DATABASE']['host']) -engine = create_engine(f"postgresql://{databaseUsername}:{databasePassword}@localhost/{databaseName}") +engine = create_engine(f"postgresql://{databaseUsername}:{databasePassword}@{databaseHost}/{databaseName}") db = scoped_session(sessionmaker(bind=engine)) Base = declarative_base() diff --git a/config.sample.ini b/config.sample.ini index 85d626f..77408a7 100644 --- a/config.sample.ini +++ b/config.sample.ini @@ -5,4 +5,5 @@ instanceLocation = 'ask.example.com' [DATABASE] username = nyxask password = nyxask -name = nyxask \ No newline at end of file +name = nyxask +host = localhost \ No newline at end of file