kopia lustrzana https://github.com/dgtlmoon/changedetection.io
Updated Running changedetection.io behind a reverse proxy sub directory (markdown)
rodzic
ccdbca050a
commit
9722929341
|
@ -74,3 +74,26 @@ _Note_: You may like to comment out the `ports:` section of the base `docker-com
|
|||
```
|
||||
|
||||
|
||||
## Caddy Server Reverse Proxy
|
||||
|
||||
|
||||
In Caddy alternately, you just need to configure the X-Forwarded-Prefix.
|
||||
|
||||
Example using yoursite.com/cd as the path
|
||||
|
||||
Be sure to also configure the base URL in 'Settings' to https://yoursite.com/cd
|
||||
|
||||
```
|
||||
yoursite.com {
|
||||
rewrite /cd /cd/
|
||||
route /cd/* {
|
||||
uri strip_prefix /cd
|
||||
reverse_proxy changedetection:5000 {
|
||||
header_up X-Forwarded-Prefix /cd
|
||||
|
||||
# If some CSS or JS doesnt work, try adding a leading / instead
|
||||
# header_up X-Forwarded-Prefix /cd/
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
Ładowanie…
Reference in New Issue