@@ -317,11 +317,18 @@ def main():
317317 redis_client .ping ()
318318
319319 display_pool = VirtualDisplayPool (
320- redis_client , hostname = args .hostname , max_displays = args .max_displays , start_display = args .start_display , display_res = args .display_res , rfb_start_port = args .rfb_start_port )
320+ redis_client , hostname = args .hostname , max_displays = args .max_displays ,
321+ start_display = args .start_display , display_res = args .display_res ,
322+ rfb_start_port = args .rfb_start_port )
321323
322324 # Start websockify server
323- websockify_process = subprocess .Popen (['websockify' , f'{ args .wss_port } ' , '--web' , '/usr/share/www/html' , '--token-plugin=TokenRedis' , f'--token-source={ args .redis_host } :{ args .redis_port } ' ,
324- '-v' , '--auth-plugin=llmstack.common.runner.auth.BasicHTTPAuthWithRedis' , f'--auth-source={ args .redis_host } :{ args .redis_port } { f":{ args .redis_password } " if args .redis_password else "" } ' ], close_fds = True )
325+ websockify_process = subprocess .Popen (
326+ ['websockify' , f'{ args .wss_port } ' , '--web' , '/usr/share/www/html' ,
327+ '--token-plugin=llmstack.common.runner.token.TokenRedis' ,
328+ f'--token-source={ args .redis_host } :{ args .redis_port } :{ args .redis_db } { f":{ args .redis_password } " if args .redis_password else "" } ' ,
329+ '-v' , '--auth-plugin=llmstack.common.runner.auth.BasicHTTPAuthWithRedis' ,
330+ f'--auth-source={ args .redis_host } :{ args .redis_port } :{ args .redis_db } { f":{ args .redis_password } " if args .redis_password else "" } ' ],
331+ close_fds = True )
325332
326333 server = grpc_server (futures .ThreadPoolExecutor (max_workers = 10 ))
327334 runner = Runner (display_pool = display_pool )
0 commit comments