From 1b58eb725797727f689b96f5890e7009383d2abd Mon Sep 17 00:00:00 2001 From: Kyle Robinson <84939608+kylernocturnalnerd@users.noreply.github.com> Date: Sat, 31 Dec 2022 00:54:26 -0500 Subject: [PATCH] Created Running changedetection.io behind a reverse proxy sub directory (markdown) --- ...io-behind-a-reverse-proxy-sub-directory.md | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Running-changedetection.io-behind-a-reverse-proxy-sub-directory.md diff --git a/Running-changedetection.io-behind-a-reverse-proxy-sub-directory.md b/Running-changedetection.io-behind-a-reverse-proxy-sub-directory.md new file mode 100644 index 0000000..ebdee4d --- /dev/null +++ b/Running-changedetection.io-behind-a-reverse-proxy-sub-directory.md @@ -0,0 +1,34 @@ +In order to run a reverse proxy in the fashion: `http://domain.com/changedetectionio`
+or another sub-directory. + +Make sure you are running with the environment variable
+`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 + + RequestHeader set X-Forwarded-Prefix "/watcher" + ProxyPass "http://lan-ip:5000/" + ProxyPassReverse "http://lan-ip:5000/" + +``` +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 \ No newline at end of file