1
0
Fork 0
mirror of https://github.com/fastogt/fastocloud_admin.git synced 2025-03-09 23:38:52 +00:00

Load balancer flag

This commit is contained in:
topilski 2019-09-25 10:36:31 -04:00
parent e63c265c38
commit dc69a69544
2 changed files with 6 additions and 5 deletions

View file

@ -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

View file

@ -4,3 +4,4 @@ PREFERRED_URL_SCHEME = 'http'
BOOTSTRAP_SERVE_LOCAL = True
SUBSCRIBERS_SUPPORT = False
INTERNAL_LOAD_BALANCER = False