glanceapp / glance

A self-hosted dashboard that puts all your feeds in one place
GNU Affero General Public License v3.0
8.56k stars 297 forks source link

[Feature Request] Separate URL for checking availability and redirecting on click in monitoring widget #198

Closed kubisgg closed 2 months ago

kubisgg commented 3 months ago

I'm using AdGuard Home for DNS rewrites, but when I insert a URL with a domain to monitor my site, I get the error "1.1.1.1:53 no such host". My idea for this: add optional property, for example url-target which, when clicked, will redirect to a specific URL while the glance continues to check for IP availability.

- type: monitor
  cache: 1m
  sites:
    - title: Zabbix
      url: http://10.0.5.3
      url-target: https://zabbix.domain.home # <- optional property, targeting to different URL than checked above
      icon: /assets/zabbix-logo.png
    - title: AdGuard Home
      url: http://10.0.5.5
      url-target: https://adguard.domain.home
      icon: /assets/adguard-logo.png
    - title: Pterodactyl
      url: https://pterodatyl.domain.com # <- site without optional property, redirecting to the same URL that is checked
      icon: /assets/pterodactyl-logo.png
svilenmarkov commented 3 months ago

Hey, this will be available in v0.6.0 using the check-url property. A beta version is available if you'd like to use it before the official release.