17
README.md
17
README.md
@@ -79,16 +79,19 @@ Just some examples
|
||||
|
||||
### 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
|
||||
```
|
||||
$ export HTTP_PROXY="socks5h://10.10.1.10:1080"
|
||||
$ export HTTPS_PROXY="socks5h://10.10.1.10:1080"
|
||||
`NO_PROXY` exclude list can be specified by following `"localhost,192.168.0.0/24"`
|
||||
|
||||
as `docker run` with `-e`
|
||||
|
||||
# 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
|
||||
|
||||
### Notes
|
||||
|
||||
@@ -5,6 +5,14 @@ services:
|
||||
hostname: changedetection.io
|
||||
volumes:
|
||||
- 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:
|
||||
- 5000:5000
|
||||
restart: always
|
||||
|
||||
Reference in New Issue
Block a user