stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

Add optional flag to enable access to extensions settings for non-local servers

Open DenkingOfficial opened this issue 2 years ago • 1 comments

Adds --global-extensions-access flag to enable access for global servers

I think it's useful flag for some users who using a smartphone or laptop to connect to webui server and want to install or update extensions if they're sure that network they use is safe from other users.

USE AT YOUR OWN RISK

DenkingOfficial avatar Nov 01 '22 01:11 DenkingOfficial

What might be nice for this would be the ability to pass in a trusted subnet or ip at the same time

--global-extensions-access=192.168.1.0/24,2603:6FE1:647F::/64

simcop2387 avatar Nov 01 '22 22:11 simcop2387

@AUTOMATIC1111 implemented this in https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/ccf1a15412ef6b518f9f54cc26a0ee5edf458108

DenkingOfficial avatar Nov 04 '22 07:11 DenkingOfficial

@AUTOMATIC1111 implemented this in ccf1a15

I tried adding those changes but now I'm getting this error ImportError: cannot import name 'StableDiffusionProcessing' from partially initialized module 'modules.processing' (most likelydue to a circular import) (/root/stable-diffusion-webui/modules/processing.py)

sanasigma avatar Nov 10 '22 10:11 sanasigma

@AUTOMATIC1111 implemented this in ccf1a15

I tried adding those changes but now I'm getting this error ImportError: cannot import name 'StableDiffusionProcessing' from partially initialized module 'modules.processing' (most likelydue to a circular import) (/root/stable-diffusion-webui/modules/processing.py)

Just pull the latest changes from github, I think it's not related to this flag and this PR processing.py wasn't changed for global extension access

DenkingOfficial avatar Nov 12 '22 00:11 DenkingOfficial

I added this flag when I tried installing the Deforum extension and it had no effect

CJohnDesign avatar Dec 09 '22 00:12 CJohnDesign

I added this flag when I tried installing the Deforum extension and it had no effect

--enable-insecure-extension-access This ^ one ? worked for me

Natotela avatar Dec 16 '22 20:12 Natotela

I fixed the issue I was having by deselected Gradio server on startup.

CJohnDesign avatar Dec 16 '22 20:12 CJohnDesign