fiveai / Cachet

📛 An open source status page system for everyone.
https://cachethq.io
BSD 3-Clause "New" or "Revised" License
101 stars 28 forks source link

Wrong urls in mail notifications - docker #57

Open NiTRoeSE opened 3 years ago

NiTRoeSE commented 3 years ago

Hello, we run cachet in docker behind a reverse proxy and noticed that all urls in notification mails are wrong. Urls are always http://ip.address:port instead of https://status.ourpublicdomain.com. I tried to fix it with environment variables like:


- ASSET_URL=https://status.ourpublicdomain.com
- APP_URL=https://status.ourpublicdomain.com
- APP_NAME=https://status.ourpublicdomain.com

But nothing of these seems to work. We have also set the public url in "administration configuration" of cachet, but this seems only affect the URL on the status page links.

Is there any way to get the this working ? Maybe urls in mails should be generated with url given in cachet administration options ?

Thanks in advanced

mattzuba commented 3 years ago

I'm running this behind a proxy and I'm not having this issue at all. Make sure you have the TRUSTED_PROXIES environment variable set to either the IP address(es) of your proxy, or to *.