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

Supabase-py through outbound http proxy #522

Closed
theveloped opened this issue Aug 21, 2023 · 2 comments
Closed

Supabase-py through outbound http proxy #522

theveloped opened this issue Aug 21, 2023 · 2 comments

Comments

@theveloped
Copy link

theveloped commented Aug 21, 2023

I'd like to use supabse-py in an app that is deployed behind a http proxy. It seems supabase does not use the system proxy settings to route requests. Is there a way to specify a http proxy to be used by the client?

@theveloped
Copy link
Author

It seems the lower level libraries will correctly follow the environment settings for proxies. Setting these in your code like below should solve the issue if others have the same problem. Note, this is a global setting and as such might interfere with more then just supabase:

import os
os.environ['HTTP_PROXY'] = 'http:https://proxyaddress:8080'
os.environ['HTTPS_PROXY'] = 'http:https://proxyaddress:8080'

@theveloped
Copy link
Author

As such I'll close this for now.

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

No branches or pull requests

1 participant