From 5ff099ea1feae2a9308532bee54a621d54ed5cfe Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 13 Mar 2022 22:00:36 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=20Updates=20schema=20and=20adds=20?= =?UTF-8?q?maxRedirects=20to=20docs=20(Re:=20#494)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/configuring.md | 1 + src/utils/ConfigSchema.json | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/configuring.md b/docs/configuring.md index 71356c3d..4e052c4a 100644 --- a/docs/configuring.md +++ b/docs/configuring.md @@ -206,6 +206,7 @@ For more info, see the **[Authentication Docs](/docs/authentication.md)** **`statusCheckHeaders`** | `object` | _Optional_ | If you're endpoint requires any specific headers for the status checking, then define them here **`statusCheckAllowInsecure`** | `boolean` | _Optional_ | By default, any request to insecure content will be blocked. Setting this option to `true` will disable the `rejectUnauthorized` option, enabling you to ping non-HTTPS services for the current item. Defaults to `false` **`statusCheckAcceptCodes`** | `string` | _Optional_ | If your service's response code is anything other than 2xx, then you can opt to specify an alternative success code. E.g. if you expect your server to return 403, but still want the status indicator to be green, set this value to `403` +**`statusCheckMaxRedirects`** | `number` | _Optional_ | If your service redirects to another page, and you would like status checks to follow redirects, then specify the maximum number of redirects here. Defaults to `0` / will not follow redirects **`color`** | `string` | _Optional_ | An optional color for the text and font-awesome icon to be displayed in. Note that this will override the current theme and so may not display well **`backgroundColor`** | `string` | _Optional_ | An optional background fill color for the that given item. Again, this will override the current theme and so might not display well against the background **`provider`** | `string` | _Optional_ | The name of the provider for a given service, useful for when including hosted apps. In some themes, this is visible under the item name diff --git a/src/utils/ConfigSchema.json b/src/utils/ConfigSchema.json index dab1e454..312fafc8 100644 --- a/src/utils/ConfigSchema.json +++ b/src/utils/ConfigSchema.json @@ -789,11 +789,16 @@ "description": "Allows for running status checks on insecure content/ non-HTTPS apps. Prevents checks failing for non-SSL sites" }, "statusCheckAcceptCodes": { - "title": "Accepted HTTP Status Codes", + "title": "Status Check - Accepted HTTP Codes", "type": "string", - "default": "", "description": "If your service's response code is anything other than 2xx, then you can opt to specify an alternative success code" }, + "statusCheckMaxRedirects": { + "title": "Status Check - Max Redirects", + "type": "number", + "default": "0", + "description": "If your service redirects to another page, and you would like status checks to follow redirects, then specify the maximum number of redirects here" + }, "color": { "title": "Custom Color", "type": "string",