Using a Web Proxy with the Tryton GTK Client

Hi

Has anyone ever used the Tryton GTK client through a web proxy?
I have configured the HTTP_PROXY and HTTPS_PROXY environment variables, but it still tries to connect directly.

Thank you.

I’m using Tryton behind NginX without any problems. Maybe https://discuss.tryton.org/t/deploying-tryton-with-a-python-virtual-environment can help you setting it up. Also bij default the GTK client connects to port 8000. If you want to connect to another port you have to add that to the hostname like my.tryton.lan:443 instead of my.tryton.lan.

I am not referring to the Tryton server, but to the client. All web traffic from client workstations uses a web proxy (e.g. squid), but I cannot get the Tryton client to do the same.

For me, the Python xmlrpc.client library on which the desktop client is based does not support proxy.
But it should be doable using urllib.request.getproxies and http.client.HTTPConnection.set_tunnel. It may even be possible to get it included in python stdlib.