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

feature(downloader.py): Add HTTP proxy support #460

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gyptazy
Copy link

@gyptazy gyptazy commented Jul 31, 2023

General

DiffusionBee may fail to download models when running in a proxy environment where:

  1. ENV vars can not be evaluated due to Electron
  2. Custom proxy settings may be required in general
  3. A dedicated proxy should be used

This PR adds a possibility to add a config file to DiffusionBee's dot dir (.diffusionbee/config.ini). By section, this may be extended for additional params in future. To define a proxy, just place:

[proxy]
host: http://localhost:8000

Why ini? While other files already are json I'd really like to prefer json but writing json is not beginner and human friendly. Therefore, I'd stick to ini.

Issue

Fixes #445

Ideas

This could also be added to the GUI in future to read/write settings.

@TIMESTICKING
Copy link

Hi, It doesn't work, still shows Error: please check your internet connection or firewall. read ECONNRESET.
Ive check the port, and replace the localhost with 127.0.0.1

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.

[Feature Request] Support for HTTP Proxy
2 participants