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

web: allow custom host/port, default to 127.0.0.1 for security reasons #328

Merged
merged 4 commits into from
Sep 3, 2022

Conversation

cgodley
Copy link
Contributor

@cgodley cgodley commented Sep 2, 2022

  1. Allow specifying the --host and --port for the web server to listen on
  2. Default host to 127.0.0.1 for security reasons

@cgodley
Copy link
Contributor Author

cgodley commented Sep 2, 2022

Hmm only 1 file should have changed, let me see what happened....

@cgodley
Copy link
Contributor Author

cgodley commented Sep 2, 2022

Okay should be good to merge now. Sorry about that, still learning how to use GitHub

Copy link
Contributor

@bakkot bakkot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'm always a little bit wary of changing the defaults in a way which will make things which used to work stop working, so I'd like to hear opinions from other people about changing the default is a change worth making. But the change to support custom ports is certainly worth it.

scripts/dream.py Outdated Show resolved Hide resolved
scripts/dream.py Outdated Show resolved Hide resolved
cgodley and others added 3 commits September 2, 2022 14:56
Co-authored-by: Kevin Gibbons <bakkot@gmail.com>
Co-authored-by: Kevin Gibbons <bakkot@gmail.com>
@lstein
Copy link
Collaborator

lstein commented Sep 3, 2022

I'm OK with changing the default behavior as long as we give the user a big fat warning that this has happened. I'm reviewing now, and will add a suitable warning message if the user does not specify --host.

Copy link
Collaborator

@lstein lstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@lstein lstein merged commit 12755c6 into invoke-ai:development Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants