diff --git a/nextcloud_backup/config.json b/nextcloud_backup/config.json index 9e18402..ca2183d 100644 --- a/nextcloud_backup/config.json +++ b/nextcloud_backup/config.json @@ -21,7 +21,8 @@ ], "boot": "auto", "hassio_api": true, - "hassio_role": "backup", + "hassio_role": "manager", + "homeassistant_api": true, "options": { "ssl": false, "certfile": "fullchain.pem", diff --git a/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/webdavTools.js b/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/webdavTools.js index eb128f4..dd3644f 100644 --- a/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/webdavTools.js +++ b/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/webdavTools.js @@ -216,6 +216,7 @@ class WebdavTools { if (conf.ssl === "true") { options["https"] = { rejectUnauthorized: conf.self_signed === "false" }; } + logger.debug(`...URI: ${this.baseUrl + encodeURI(path)} rejectUnauthorized: ${options["https"]["rejectUnauthorized"]}`); got.stream .put(this.baseUrl + encodeURI(path), options) @@ -310,7 +311,7 @@ class WebdavTools { if (conf.ssl === "true") { options["https"] = { rejectUnauthorized: conf.self_signed === "false" }; } - + logger.debug(`...URI: ${this.baseUrl + encodeURI(path)} rejectUnauthorized: ${options["https"]["rejectUnauthorized"]}`) pipeline( got.stream.get(this.baseUrl + encodeURI(path), options).on("downloadProgress", (e) => { let percent = Math.round(e.percent * 100) / 100;