mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
add auth to --listen and readme (#2127)
* Update webui.py * Update readme.md * Update webui.py Only enable AuthN for --listen and --share Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com> * docs: rephrase documentation changes for auth --------- Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com> Co-authored-by: Manuel Schmid <manuel.schmid@odt.net>
This commit is contained in:
co-authored by
Manuel Schmid
Manuel Schmid
parent
95f93a1f4b
commit
ac10e51364
@@ -618,6 +618,6 @@ shared.gradio_root.launch(
|
||||
server_name=args_manager.args.listen,
|
||||
server_port=args_manager.args.port,
|
||||
share=args_manager.args.share,
|
||||
auth=check_auth if args_manager.args.share and auth_enabled else None,
|
||||
auth=check_auth if (args_manager.args.share or args_manager.args.listen) and auth_enabled else None,
|
||||
blocked_paths=[constants.AUTH_FILENAME]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user