-
The current reverse proxy support seems to be limited to SWAG, Apache and nginx, as discussed and documented here: https://github.com/jokob-sk/Pi.Alert/discussions/275 Traefik can strip the prefix of a url path (www.domain.com/pialert > www.domain.com) and stores the stripped prefix in a X-Forwarded-Prefix header. This works on the condition that the backend application reads this header to reconstruct the proper url. With the current version, stripping the prefix results in Pi.Alert attempting to open www.domain.com/devices.php, which doesn't work because Traefik is configured to react on www.domain.com/pialert. Any plans to make Pi.Alert work with this method? Or is there another way to make Pi.Alert work with Traefik that I don't know? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
Hi there, I'm b really not sure as I'm not using traefik myself. @cvc90 do you know by any chance? Thanks, |
Beta Was this translation helpful? Give feedback.
-
There is also this discussion, not sure if relevant: https://github.com/jokob-sk/Pi.Alert/discussions/456#discussioncomment-7106751 |
Beta Was this translation helpful? Give feedback.
Hi!
I think a possible solution to this problem could be solved as follows.
In the file /etc/nginx/sites-available/default of Docker Pi.Alert would add the directive that you mention that Traefik could read them.
add_header X-Forwarded-Prefix "/pialert" always;
proxy_set_header X-Forwarded-Prefix "/pialert";