From 33b6ea86f972a379c64ffd9cbbfdeae408b55429 Mon Sep 17 00:00:00 2001 From: John Doe Date: Sun, 7 Feb 2021 11:19:00 +0800 Subject: [PATCH] Add frontend config (#6145) * 1.17.1 * Add frontend config json schema --- lib/util/settings.schema.json | 25 +++++++++++++++++++++++++ npm-shrinkwrap.json | 2 +- package.json | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/lib/util/settings.schema.json b/lib/util/settings.schema.json index d4020514f..514e0fd17 100644 --- a/lib/util/settings.schema.json +++ b/lib/util/settings.schema.json @@ -512,6 +512,31 @@ "$ref": "#/definitions/group" } } + }, + "frontend": { + "type": "object", + "title": "Frontend", + "properties": { + "port": { + "type": "number", + "title": "Port", + "description": "Frontend binding port", + "default": 8080, + "requiresRestart": true + }, + "host": { + "type": "string", + "title": "Bind host", + "default":" 0.0.0.0", + "requiresRestart": true + }, + "auth_token": { + "type": ["string", "null"], + "title": "Auth token", + "description": "Enables authentication, disabled by default", + "requiresRestart": true + } + } } }, "required": ["mqtt"], diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 1d6fad30b..abe648624 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,6 +1,6 @@ { "name": "zigbee2mqtt", - "version": "1.17.1-dev", + "version": "1.17.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 75fc41e11..749ce36c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zigbee2mqtt", - "version": "1.17.1-dev", + "version": "1.17.1", "description": "Zigbee to MQTT bridge using Zigbee-herdsman", "main": "index.js", "repository": {