papuSpartan / stable-diffusion-webui-distributed

Chains stable-diffusion-webui instances together to facilitate faster image generation.
181 stars 14 forks source link

use https if available / fix Typing / use Config #15

Closed aria1th closed 1 year ago

aria1th commented 1 year ago
  1. Loads from config file. The config file can be placed in webui directory as distributed-config.json

[{"uuid": "worker1", "address": "https://somewhere.example.com", "auth": "username:password"}]

  1. Fix Typing Annotation Issues.

  2. use session

  3. allow https connections with auth.

Future work : lets just put this in always_on script. That will let us actually use nested workers concept, which can call other workers recursively, or we can call this script with API.

This may result some infinite recursion problem too, though, but that should be controlled externally.

Another future work : only use script args if worker has matching scripts.

aria1th commented 1 year ago

@papuSpartan Thanks for the review! I fixed most of the issue, except I need some test for mixture of http + https addresses. The pull requested is rebased for dev branch in #17