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

Using other environment variables to set proxy #554

Open
TigerCubDen opened this issue Mar 24, 2022 · 3 comments
Open

Using other environment variables to set proxy #554

TigerCubDen opened this issue Mar 24, 2022 · 3 comments

Comments

@TigerCubDen
Copy link

TigerCubDen commented Mar 24, 2022

💡 The Idea

There is a well-known reason that in China lots of listed services has been blocked by GFW, which caused the connection is not possible unless proxy server is used.

on issue #387 it has already talked about setting for proxy server. I consider that the environment variables are so universal that unexpected behaviors happen. Most of the time we just need to set proxy server for apprise alone instead of a whole program which includes this library.

There are some example variables only effective for apprise.

For http proxy:

APPRISE_PROXY=http://127.0.0.1:3128

For socks5 proxy:

APPRISE_PROXY=sock5h://127.0.0.1:1080

🔨 Breaking Feature

No breaking modification.

@caronc
Copy link
Owner

caronc commented Apr 28, 2022

Hi, i guess i'm curious what the advantage is of setting
APPRISE_PROXY=http://127.0.0.1:3128 when under the hood, i'll just end up setting HTTP_PROXY.

I'm curious if setting HTTP_PROXY works already, perhaps the best thing i could do here is add documentation to describe this for users?

Thoughts?

@TigerCubDen
Copy link
Author

Thanks for your reply.

HTPP_PROXY is a common environmental variable, using it will cause other programs to proxy. if I want the proxy only effective on Apprise, the dedicated variable will be useful.

For example, I run a app , the app uses Apprise as notification service, I want set the proxy for Apprise rather than the app.

In any case, it's a good idea to add documentation to describe how to set proxy when there are some people not aware of that Apprise have supported proxy.

@TigerCubDen
Copy link
Author

By the way, you can provide both HTTP_PROXY and APPRISE_PROXY, either needn’t be deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants