Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebclem committed Nov 17, 2020
2 parents 7d174aa + 3941262 commit 830f8d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion nextcloud_backup/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
],
"boot": "auto",
"hassio_api": true,
"hassio_role": "backup",
"hassio_role": "manager",
"homeassistant_api": true,
"options": {
"ssl": false,
"certfile": "fullchain.pem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 830f8d6

Please sign in to comment.