diff options
author | syn <isaqtm@gmail.com> | 2020-03-18 12:25:03 +0300 |
---|---|---|
committer | syn <isaqtm@gmail.com> | 2020-03-18 12:25:03 +0300 |
commit | c8a027ef282962584c5155a9015b644ad197d9c8 (patch) | |
tree | b7a74ce6bbd6422a06ae33c7e51add268546c950 /config.py | |
parent | 9825d2ad0dacc1d281924b634f17b157c1f36da3 (diff) | |
download | blure-c8a027ef282962584c5155a9015b644ad197d9c8.tar.gz |
Configure db from docker-compose
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,10 +1,14 @@ from uuid import UUID +from os import environ host = '0.0.0.0' port = 80 debug = True -PG_URI = 'postgres://postgres:secure@pg' +pg_user = environ.get('POSTGRES_USER') or 'postgres' +pg_pass = environ.get('POSTGRES_PASSWORD') or '' +PG_URI = f'postgres://{pg_user}:{pg_pass}@pg' + APP_SECRET = UUID('8036587d-11ea-4c59-af9b-9da52eded1bc').bytes |