Re #49 Re #60 - Adding more information about proxy setup to README.md

pull/66/head
dgtlmoon 4 years ago
parent 454fc26341
commit 63a3492547

@ -79,16 +79,19 @@ Just some examples
### Proxy ### Proxy
A proxy for ChangeDectection.io can be configured by setting environment variables. A proxy for ChangeDectection.io can be configured by setting environment the
`HTTP_PROXY`, `HTTPS_PROXY` variables.
For example `NO_PROXY` exclude list can be specified by following `"localhost,192.168.0.0/24"`
```
$ export HTTP_PROXY="socks5h://10.10.1.10:1080" as `docker run` with `-e`
$ 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"
``` ```
docker run -d --restart always -e HTTPS_PROXY="socks5h://10.10.1.10:1080" -p "127.0.0.1:5000:5000" -v datastore-volume:/datastore --name changedetection.io dgtlmoon/changedetection.io
```
With `docker-compose`, see the `Proxy support example` in <a href="https://github.com/dgtlmoon/changedetection.io/blob/master/docker-compose.yml">docker-compose.yml</a>.
For more information see https://docs.python-requests.org/en/master/user/advanced/#proxies For more information see https://docs.python-requests.org/en/master/user/advanced/#proxies
### Notes ### Notes

@ -5,6 +5,14 @@ services:
hostname: changedetection.io hostname: changedetection.io
volumes: volumes:
- changedetection-data:/datastore - changedetection-data:/datastore
# Proxy support example.
# environment:
# - HTTP_PROXY="socks5h://10.10.1.10:1080"
# - HTTPS_PROXY="socks5h://10.10.1.10:1080"
# An exclude list (useful for notifcation URLs above) can be specified by following
# - NO_PROXY="localhost,192.168.0.0/24"
ports: ports:
- 5000:5000 - 5000:5000
restart: always restart: always

Loading…
Cancel
Save