Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/models/initiate_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
exit()

from sqlalchemy import create_engine
engine = create_engine('postgresql://' + settings["postgreql_username"] + ':' + settings["postgreql_password"] + '@localhost/' + settings["postgres_db"] + '?client_encoding=utf8', pool_recycle=60, encoding='utf8')
engine = create_engine('postgresql://' + settings["postgreql_username"] + ':' + settings["postgreql_password"] + '@' settings["postgres_server"] + '/' + settings["postgres_db"] + '?client_encoding=utf8', pool_recycle=60, encoding='utf8')
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
from sqlalchemy import Column, Integer, String, func, update, Text, Binary, Boolean, BigInteger, event, select, exc
Expand Down
4 changes: 4 additions & 0 deletions generate_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@
print "(ex. xsshunter)"
settings["postgres_db"] = raw_input( "Postgres DB: ")
print ""
print "What is the postgres server address? "
print "(ex. localhost, localhos:5432, IP, container_name)"
settings["postgres_server"] = raw_input( "Postgres Server: ")
print ""
print "Generating cookie secret..."
settings["cookie_secret"] = binascii.hexlify( os.urandom(50) )

Expand Down