kopia lustrzana https://github.com/dgtlmoon/changedetection.io
Created Running changedetection.io behind a reverse proxy sub directory (markdown)
rodzic
de5264c52e
commit
1b58eb7257
|
@ -0,0 +1,34 @@
|
||||||
|
In order to run a reverse proxy in the fashion: `http://domain.com/changedetectionio`<br>
|
||||||
|
or another sub-directory.
|
||||||
|
|
||||||
|
Make sure you are running with the environment variable<br>
|
||||||
|
`USE_X_SETTINGS=1`
|
||||||
|
|
||||||
|
This tells your webserver that you can use X-Forwarded-Prefix in your headers
|
||||||
|
In apache it looks like this:
|
||||||
|
|
||||||
|
```apache
|
||||||
|
<Location /watcher>
|
||||||
|
RequestHeader set X-Forwarded-Prefix "/watcher"
|
||||||
|
ProxyPass "http://lan-ip:5000/"
|
||||||
|
ProxyPassReverse "http://lan-ip:5000/"
|
||||||
|
</Location>
|
||||||
|
```
|
||||||
|
Your docker compose file should have:
|
||||||
|
```yaml
|
||||||
|
services:
|
||||||
|
changedetection:
|
||||||
|
image: ghcr.io/dgtlmoon/changedetection.io
|
||||||
|
container_name: changedetection
|
||||||
|
hostname: changedetection
|
||||||
|
volumes:
|
||||||
|
- changedetection-data:/datastore
|
||||||
|
ports:
|
||||||
|
- 5000:5000
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
USE_X_SETTINGS=1
|
||||||
|
volumes:
|
||||||
|
changedetection-data:
|
||||||
|
```
|
||||||
|
Along with whatever changes you would make
|
Ładowanie…
Reference in New Issue