From 44fca91089538693cdbe3209c80e3ccecc3ac427 Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Tue, 22 Apr 2025 23:56:00 +0100 Subject: [PATCH 1/3] Don't return if the err is a warning --- internal/glance/cli.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/glance/cli.go b/internal/glance/cli.go index 5d78fe1..0a76e66 100644 --- a/internal/glance/cli.go +++ b/internal/glance/cli.go @@ -106,8 +106,6 @@ func cliSensorsPrint() int { fmt.Printf("Failed to retrieve sensor information: %v\n", err) return 1 } - - return 1 } if len(tempSensors) == 0 { From ec2f549295f5e432628412be7ae081bfbacce4bc Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Sat, 26 Apr 2025 18:56:25 +0100 Subject: [PATCH 2/3] Update property description --- docs/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/configuration.md b/docs/configuration.md index b8121f0..da62ec2 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -1583,7 +1583,7 @@ The title used to indicate the site. `url` -The public facing URL of a monitored service, the user will be redirected here. If `check-url` is not specified, this is used as the status check. +The URL of the monitored service, which must be reachable by Glance, and will be used as the link to go to when clicking on the title. If `check-url` is not specified, this is used as the status check. `check-url` From aceb832645accafdb18785725575b1f85f4b5719 Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Sat, 26 Apr 2025 18:58:27 +0100 Subject: [PATCH 3/3] Mention config schema in docs --- docs/configuration.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/configuration.md b/docs/configuration.md index da62ec2..ba527b4 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -5,6 +5,7 @@ - [Auto reload](#auto-reload) - [Environment variables](#environment-variables) - [Including other config files](#including-other-config-files) + - [Config schema](#config-schema) - [Server](#server) - [Document](#document) - [Branding](#branding) @@ -149,6 +150,10 @@ docker run --rm -v ./glance.yml:/app/config/glance.yml glanceapp/glance config:p This assumes that the config you want to print is in your current working directory and is named `glance.yml`. +## Config schema + +For property descriptions, validation and autocompletion of the config within your IDE, @not-first has kindly created a [schema](https://github.com/not-first/glance-schema). Massive thanks to them for this, go check it out and give them a star! + ## Server Server configuration is done through a top level `server` property. Example: