diff --git a/Running-changedetection.io-behind-a-reverse-proxy-sub-directory.md b/Running-changedetection.io-behind-a-reverse-proxy-sub-directory.md index 6e4ea70..7356b46 100644 --- a/Running-changedetection.io-behind-a-reverse-proxy-sub-directory.md +++ b/Running-changedetection.io-behind-a-reverse-proxy-sub-directory.md @@ -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/ + } + } +} +``` \ No newline at end of file