diff --git a/app/__init__.py b/app/__init__.py index 2abb296..0dbf084 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -68,10 +68,10 @@ def init_project(static_folder, *args): host = sn_host or _host port = int(sn_port or _port) - support_subscribers = app.config.get('SUBSCRIBERS_SUPPORT') - servers_manager = SubscribersServiceManager(host, port, socketio) if support_subscribers else ServiceManager(host, - port, - socketio) + native_balancer = app.config.get('INTERNAL_LOAD_BALANCER') + servers_manager = SubscribersServiceManager(host, port, socketio) if native_balancer else ServiceManager(host, + port, + socketio) return app, bootstrap, babel, db, mail, login_manager, servers_manager diff --git a/app/config/config.py b/app/config/config.py index 387f783..57a9728 100644 --- a/app/config/config.py +++ b/app/config/config.py @@ -3,4 +3,5 @@ SERVER_NAME_FOR_POST = '0.0.0.0:8080' PREFERRED_URL_SCHEME = 'http' BOOTSTRAP_SERVE_LOCAL = True -SUBSCRIBERS_SUPPORT = False \ No newline at end of file +SUBSCRIBERS_SUPPORT = False +INTERNAL_LOAD_BALANCER = False \ No newline at end of file