Skip to content

remote_settings

Remote Launch Settings for the addon.

ComfyRemoteSetting

Bases: BaseSettingsModel

Comfy Remote Executable & Launch profiles settings.

Source code in server/remote_settings.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
class ComfyRemoteSetting(BaseSettingsModel):
    """Comfy Remote Executable & Launch profiles settings."""

    name: str = SettingsField(default="", title="Entry Name")

    server_pulse_port: int = SettingsField(
        55055,
        title="Default port to pulse connection to backend",
        description=(
            "Websocket port to send heartbeat over, "
            "to make sure the backend process is still alive. "
            "This port must be configured to be the same on the "
            "server you are connecting to."
        ),
    )

    frontend_port: int = SettingsField(
        55056,
        title="Default port for frontend RPC",
        description=(
            "Websocket port to communicate with local browser instance"
        ),
    )

    http_server_port: int = SettingsField(
        5454,
        title="Default port for website user interacts with.",
        description=(
            "This port is used to launch a wrapper website "
            "for ComfyUI. This websites hosts an <iframe> the "
            "'real' ComfyUI will be embedded in."
        ),
    )

    comfy_web_adress: str = SettingsField(
        default="http://localhost:8188",
        title="ComfyUI Web Address",
        description=(
            "Web address of the frontend. On localhost, "
            "ComfyUI runs on port 8188, so the address would be "
            "'http://localhost:8188'. If comfyui is on the web, "
            "use something like 'https://comfyui.contoso.com'."
        ),
    )

    open_browser_on_connect: bool = SettingsField(
        default=True, title="Open browser on connect?"
    )

ComfyRemoteSettings

Bases: BaseSettingsModel

Group together settings.

Source code in server/remote_settings.py
60
61
62
63
64
65
66
67
68
69
70
71
class ComfyRemoteSettings(BaseSettingsModel):
    """Group together settings."""

    # Port settings
    remote_setting_list: list[ComfyRemoteSetting] = SettingsField(
        default_factory=list, title="Remote configuration entry"
    )

    @validator("remote_setting_list")
    def validate_unique_names_remotesettings(cls, value):
        ensure_unique_names(value)
        return value