From 4be6f341dac7d2408d160b70b1c3893ec05c06e2 Mon Sep 17 00:00:00 2001 From: Isaac Grynsztein Date: Tue, 23 Jan 2018 00:17:20 -0500 Subject: [PATCH] Updated configuration --- backend/config/default.default | 19 ------------------- backend/config/default.json | 15 ++++++++------- backend/config/encrypted.json | 22 ++++++++++++++++++++++ 3 files changed, 30 insertions(+), 26 deletions(-) delete mode 100644 backend/config/default.default create mode 100644 backend/config/encrypted.json diff --git a/backend/config/default.default b/backend/config/default.default deleted file mode 100644 index 06b365bd..00000000 --- a/backend/config/default.default +++ /dev/null @@ -1,19 +0,0 @@ -{ - "YoutubeDL-Material": { - "Host": { - "frontend-url": "http://localhost:4200", - "backend-url": "youtubedl.grynsztein.com", - "backend-port": "8088" - }, - "Encryption": { - "use-encryption": false, - "cert-file-path": "fullchain.pem", - "key-file-path": "privkey.pem" - }, - "Downloader": { - "path-base": "http://localhost:8088/", - "path-audio": "audio/", - "path-video": "video/" - } - } - } \ No newline at end of file diff --git a/backend/config/default.json b/backend/config/default.json index 3f7f2c6d..ac21d3b2 100644 --- a/backend/config/default.json +++ b/backend/config/default.json @@ -1,21 +1,22 @@ { "YoutubeDLMaterial": { "Host": { - "frontendurl": "http://localhost:4200", - "backendurl": "https://youtubedl.grynsztein.com/" + "frontendurl": "http://example.com", + "backendurl": "http://example.com:17442/" }, "Encryption": { "use-encryption": false, - "cert-file-path": "cert.pem", - "key-file-path": "privkey.pem" + "cert-file-path": "/etc/letsencrypt/live/example.com/fullchain.pem", + "key-file-path": "/etc/letsencrypt/live/example.com/privkey.pem" }, "Downloader": { - "path-base": "http://localhost:8088/", + "path-base": "http://example.com:17442/", "path-audio": "audio/", "path-video": "video/" }, "Extra": { - "title_top": "Youtube Downloader" + "title_top": "Youtube Downloader", + "file_manager_enabled": true } } - } \ No newline at end of file + } diff --git a/backend/config/encrypted.json b/backend/config/encrypted.json new file mode 100644 index 00000000..22508477 --- /dev/null +++ b/backend/config/encrypted.json @@ -0,0 +1,22 @@ +{ + "YoutubeDLMaterial": { + "Host": { + "frontendurl": "https://example.com", + "backendurl": "https://example.com:17442/" + }, + "Encryption": { + "use-encryption": true, + "cert-file-path": "/etc/letsencrypt/live/example.com/fullchain.pem", + "key-file-path": "/etc/letsencrypt/live/example.com/privkey.pem" + }, + "Downloader": { + "path-base": "https://example.com:17442/", + "path-audio": "audio/", + "path-video": "video/" + }, + "Extra": { + "title_top": "Youtube Downloader", + "file_manager_enabled": true + } + } + }