mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-10 06:10:50 +08:00
- Binary previews are not yet supported - Use `--distributed-queue-connection-uri=amqp://guest:guest@rabbitmqserver/` - Roles supported: frontend, worker or both (see `--help`) - Run `comfy-worker` for a lightweight worker you can wrap your head around - Workers and frontends must have the same directory structure (set with `--cwd`) and supported nodes. Frontends must still have access to inputs and outputs. - Configuration notes: distributed_queue_connection_uri (Optional[str]): Servers and clients will connect to this AMQP URL to form a distributed queue and exchange prompt execution requests and progress updates. distributed_queue_roles (List[str]): Specifies one or more roles for the distributed queue. Acceptable values are "worker" or "frontend", or both by writing the flag twice with each role. Frontends will start the web UI and connect to the provided AMQP URL to submit prompts; workers will pull requests off the AMQP URL. distributed_queue_name (str): This name will be used by the frontends and workers to exchange prompt requests and replies. Progress updates will be prefixed by the queue name, followed by a '.', then the user ID.
15 lines
468 B
Python
15 lines
468 B
Python
from typing import TypedDict
|
|
|
|
import jwt
|
|
|
|
|
|
class ComfyJwt(TypedDict, total=False):
|
|
sub: str
|
|
|
|
|
|
def jwt_decode(user_token: str) -> ComfyJwt:
|
|
# todo: set up a way for users to override this behavior easily
|
|
return ComfyJwt(**jwt.decode(user_token, algorithms=['HS256', "none"],
|
|
# todo: this should be configurable
|
|
options={"verify_signature": False, 'verify_aud': False, 'verify_iss': False}))
|