[Bug]: URL in notifications is showing wrong host
Description
We are hosting a Beszel Hub instance, using the APP_URL env variable.
All notifications (using Shoutrrr's Mattermost service) show up with a link containing a http://localhost:8090 host.
Aside: Thanks for all your great work! 👏
Expected Behavior
When I set the APP_URL environment variable, it is used to generate links in notification messages.
Steps to Reproduce
- Set
APP_URLto anything other thanhttp://localhost:8090 - Trigger a notification (might need to use Mattermost as the Shoutrrr service)
- Observe a link to
http://localhost:8090in the notification message, instead of anAPP_URLbased host.
OS / Architecture
x86_64 (Hub)
Beszel version
0.11.1
Installation method
Other (please describe above)
Configuration
Running in a Docker container, packaged for [Cloudron](https://www.cloudron.io/). See: https://git.cloudron.io/walski/beszel-app
Hub Logs
Agent Logs
Thanks, I'll look further into it.
For now just set the application URL manually in PocketBase at <your-url>/_/#/settings and let me know if that doesn't fix it.
Thanks, I'll look further into it.
For now just set the application URL manually in PocketBase at
<your-url>/_/#/settingsand let me know if that doesn't fix it.
Tried with Telegram. The bug is still there.
Tried the workaround you posted; now it works as it should.
I had the same issue. The mentioned workaround inside PocketBase worked for notifications sent using ntfy.