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:
parent
e63c265c38
commit
dc69a69544
2 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -3,4 +3,5 @@ SERVER_NAME_FOR_POST = '0.0.0.0:8080'
|
|||
PREFERRED_URL_SCHEME = 'http'
|
||||
|
||||
BOOTSTRAP_SERVE_LOCAL = True
|
||||
SUBSCRIBERS_SUPPORT = False
|
||||
SUBSCRIBERS_SUPPORT = False
|
||||
INTERNAL_LOAD_BALANCER = False
|
Loading…
Add table
Add a link
Reference in a new issue