From ff38f41f57ffea9db885813c82773f16a44c29e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Bokros?= Date: Mon, 27 Nov 2017 18:41:57 +0100 Subject: [PATCH] Add environment variables to config --- lib/config/__init__.py | 1 + lib/config/envvars.py | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 lib/config/__init__.py create mode 100644 lib/config/envvars.py diff --git a/lib/config/__init__.py b/lib/config/__init__.py new file mode 100644 index 0000000..d3319d7 --- /dev/null +++ b/lib/config/__init__.py @@ -0,0 +1 @@ +from .envvars import * diff --git a/lib/config/envvars.py b/lib/config/envvars.py new file mode 100644 index 0000000..ab75fdb --- /dev/null +++ b/lib/config/envvars.py @@ -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)