Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comfyui expects localhost #50

Open
lee-b opened this issue Sep 30, 2024 · 1 comment
Open

comfyui expects localhost #50

lee-b opened this issue Sep 30, 2024 · 1 comment
Labels
question Further information is requested

Comments

@lee-b
Copy link

lee-b commented Sep 30, 2024

Is there a way to set the comfyui host? I don't see anything in the docs or the .env file for the COMFYUI_HOSTNAME, for example.

If not, then there is an issue, since ComfyUI seems to expect to be served at localhost. If I connect to it as http://server:34031/ or http://server:34032/, I get redirected to http://localhost:34032/login, which breaks of course, since I'm remote. The server is headless, of course, so I can't just use that as the client too.

@av
Copy link
Owner

av commented Sep 30, 2024

The login screen is provided by the integration called ai-dock, its documentation is available here:
https://github.com/ai-dock/comfyui?tab=readme-ov-file#additional-environment-variables

Specifically, it seems that you can specify COMFYUI_URL as a full URL including port or DIRECT_ADDRESS with the server part for this behavior. Note that I didn't test it.

It should be possible to specify these in either root .env or comfyui/override.env (available in v0.2.1 release)

@av av added the question Further information is requested label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants