11 Commits
Author SHA1 Message Date
EyeDeckandAUTOMATIC1111 b5d705e263 Disable 'batch img2img' when launched with --hide-ui-dir-config
Prevent writing to arbitrary directories, as usual
2022-09-24 19:06:36 +03:00
EyeDeckandAUTOMATIC1111 5a759687a2 Move memmon tooltip to hints.js
Move memmon tooltip to hints.js

so it's with the other tooltips, and doesn't have to be re-sent from the server every time.

Also, allowed tooltips to be applied by matching a class name if all else fails.
2022-09-19 07:29:22 +03:00
EyeDeck 46db1405df ...and make sure it can't get stuck on
in case someone sets opts.memmon_poll_rate to 0 during generation
2022-09-18 07:03:17 -04:00
EyeDeck fabaf4bddb Add some error handling for VRAM monitor 2022-09-18 05:20:33 -04:00
EyeDeck e24c3b79f6 Fix gallery not scrolling left 2022-09-17 11:58:46 -04:00
EyeDeckandAUTOMATIC1111 ed6787ca2f Add VRAM monitoring 2022-09-17 09:15:16 +03:00
EyeDeckandAUTOMATIC1111 dfb2e830d9 Improved directory sanitization when --hide_ui_dir_config
Fixes an issue where it's still possible to write to arbitrary directories through careful use of \.. or /.. in directory patterns

...and fix the regex to work better

reeeegex
2022-09-15 07:39:57 +03:00
EyeDeckandGitHub fc49844aa8 Merge branch 'master' into master 2022-09-12 08:19:14 -04:00
EyeDeck e3646e79aa Add --auth command line argument to enable Gradio authentication
Allows you to pass in Gradio authentication like:
`--auth username:password`
Supports multiple sets of credentials by comma-delimiting, like:
`--auth user1:pass1,user2:pass3`...
2022-09-12 08:08:41 -04:00
EyeDeckandGitHub e05e46aa3f Merge branch 'master' into master 2022-09-11 18:15:30 -04:00
EyeDeck 29a2933e23 Add --hide-ui-dir-config command line flag
Adds `--hide-ui-dir-config` flag to disable editing directory configs from the web UI. This can be set to prevent users from setting the directory to somewhere they shouldn't, for public (or semi-public) interfaces.

Directories are still read from config.json, so the server admin can still set them in the web UI and then relaunch with the hide flag, or edit the config manually.

Also:
- fix OptionInfo `component_args` keyword argument not being read if `component` isn't also set
- ensure that hidden settings aren't still read from the web UI (otherwise they could still be changed by tampering with the interface)
2022-09-11 16:00:42 -04:00