diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-20 18:12:57 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-20 18:12:57 +0100 |
commit | 966f40d591d6fc95068fc22c5b283b9ab54c3d8e (patch) | |
tree | 91d949d700e58bf89917f5e0cbb34ea97e54bea2 /instance/production.py | |
parent | added files for docker (diff) | |
download | newspipe-966f40d591d6fc95068fc22c5b283b9ab54c3d8e.tar.gz newspipe-966f40d591d6fc95068fc22c5b283b9ab54c3d8e.tar.bz2 newspipe-966f40d591d6fc95068fc22c5b283b9ab54c3d8e.zip |
Added Dockerfile, images: python3.8-alpine and postgres.
Diffstat (limited to 'instance/production.py')
-rw-r--r-- | instance/production.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/instance/production.py b/instance/production.py index d57520b8..d0aebd7e 100644 --- a/instance/production.py +++ b/instance/production.py @@ -5,7 +5,7 @@ import os # # Webserver -HOST = "127.0.0.1" +HOST = "0.0.0.0" PORT = 5000 DEBUG = False API_ROOT = "/api/v2.0" @@ -16,12 +16,12 @@ SECURITY_PASSWORD_SALT = "L8gTsyrpRQEF8jNWQPyvRfv7U5kJkD" # Database DB_CONFIG_DICT = { - "user": "user", + "user": "postgres", "password": "password", - "host": "localhost", + "host": "db", "port": 5432, } -DATABASE_NAME = "newspipe" +DATABASE_NAME = "postgres" SQLALCHEMY_DATABASE_URI = "postgres://{user}:{password}@{host}:{port}/{name}".format( name=DATABASE_NAME, **DB_CONFIG_DICT ) |