Add environment variables to config

This commit is contained in:
Bálint Bokros 2017-11-27 18:41:57 +01:00
parent f379c16996
commit ff38f41f57
2 changed files with 6 additions and 0 deletions

1
lib/config/__init__.py Normal file
View File

@ -0,0 +1 @@
from .envvars import *

5
lib/config/envvars.py Normal file
View File

@ -0,0 +1,5 @@
import os
PUBLISHER_PORT = os.getenv('PUBLISHER_PORT', 7654)
RECEIVER_PORT = os.getenv('RECEIVER_PORT', 8765)
WEB_PORT = os.getenv('WEB_PORT', 4242)