I have a postgres instance running on a remote (AWS).
I am on a corporate network using a proxy. I can use the tsocks
package to connect to the postgres instance through a SOCKS5
proxy.
Is there anyway for me to force FlaskSql to do the interactions through the proxy?
Notes
- I have tried setting the proxy on the
requests
module and can get that to work. - I have tried some things with the
PySocks
module, e.g this without any good results. Can you set which socket SQLAlchemy uses? - I have set
http_proxy
andhttps_proxy
as well, but it is not enough for tcp connections.