From 2cc05a19e6e35d10b1be21d6aff8e478b61994af Mon Sep 17 00:00:00 2001 From: Phil Date: Thu, 19 Jun 2025 17:18:30 -0600 Subject: [PATCH] fix: add Gotify hairpin to changedetection services MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add extra_hosts entry for changedetection service to reach Gotify - Add extra_hosts entry for sockpuppetbrowser service to reach Gotify - Resolves internal routing issues for Gotify notifications 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- roles/docker/templates/changedetection-compose.yml.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/docker/templates/changedetection-compose.yml.j2 b/roles/docker/templates/changedetection-compose.yml.j2 index 052e441..9c859ee 100644 --- a/roles/docker/templates/changedetection-compose.yml.j2 +++ b/roles/docker/templates/changedetection-compose.yml.j2 @@ -75,6 +75,8 @@ services: # ports: # - 5000:5000 restart: unless-stopped + extra_hosts: + - "{{ subdomains.gotify }}:{{ docker.hairpin_ip }}" # Used for fetching pages via WebDriver+Chrome where you need Javascript support. # Now working on arm64 (needs testing on rPi - tested on Oracle ARM instance) @@ -104,6 +106,8 @@ services: - SCREEN_HEIGHT=1024 - SCREEN_DEPTH=16 - MAX_CONCURRENT_CHROME_PROCESSES=10 + extra_hosts: + - "{{ subdomains.gotify }}:{{ docker.hairpin_ip }}" # Used for fetching pages via Playwright+Chrome where you need Javascript support. # Note: Works well but is deprecated, does not fetch full page screenshots (doesnt work with Visual Selector)