Add socks proxy support (#60)

* Add socks proxy support

* Add proxy config to README
pull/66/head
Unpublished 4 years ago committed by GitHub
parent e5409f8d16
commit 454fc26341
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -77,6 +77,19 @@ Just some examples
<img src="https://raw.githubusercontent.com/dgtlmoon/changedetection.io/master/screenshot-notifications.png" style="max-width:100%;" alt="Self-hosted web page change monitoring notifications" title="Self-hosted web page change monitoring notifications" /> <img src="https://raw.githubusercontent.com/dgtlmoon/changedetection.io/master/screenshot-notifications.png" style="max-width:100%;" alt="Self-hosted web page change monitoring notifications" title="Self-hosted web page change monitoring notifications" />
### Proxy
A proxy for ChangeDectection.io can be configured by setting environment variables.
For example
```
$ export HTTP_PROXY="socks5h://10.10.1.10:1080"
$ export HTTPS_PROXY="socks5h://10.10.1.10:1080"
# An exclude list (useful for notifcation URLs above) can be specified by following
$ export NO_PROXY="localhost,192.168.0.0/24"
```
For more information see https://docs.python-requests.org/en/master/user/advanced/#proxies
### Notes ### Notes

@ -3,7 +3,7 @@ flask~= 1.0
pytest ~=6.2 pytest ~=6.2
pytest-flask ~=1.2 pytest-flask ~=1.2
eventlet>=0.31.0 eventlet>=0.31.0
requests ~= 2.15 requests[socks] ~= 2.15
validators validators
timeago ~=1.0 timeago ~=1.0
inscriptis ~= 1.1 inscriptis ~= 1.1

Loading…
Cancel
Save