Skip to content

Support enterprise environments with proxy servers #151

@davikor

Description

@davikor

Hi, I am working at a company where all internet traffic is tunneled through a proxy server.

DuckDB supports this generally by setting a variable like SET http_proxy = 'proxy.mycompany.com:3128';. After this setting I can e.g. successfuly install the UI extension (without the http_proxy setting download will fail).

However, when I open the webinterface, it will fail with Could not fetch: '/' from 'https://ui.duckdb.org': Could not establish connection. This is because the internal http-server that serves to the webbrowser does not use this proxy.

I peaked at the source code and it seems that this could be solved by adding to

httplib::Client client(remote_url);
something like client.set_proxy("proxy.mycompany.com", 3128); (not sure whether this is the only place that needs to be adapted).

If you are interested in having this fixed I will gladly provide a pr, unless you want to fix this by yourself.

Cheers
David

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestextensionPertaining to the UI extension code, which is in this repository.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions