Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve token config keys on save #101

Merged
merged 1 commit into from Feb 20, 2022
Merged

Preserve token config keys on save #101

merged 1 commit into from Feb 20, 2022

Conversation

ghost
Copy link

@ghost ghost commented Feb 20, 2022

When adding or updating a stream from the UI, server.token.enabled gets removed from the config if false.

The new config.json compared to the provided (default) one after save with this change:

--- config.json
+++ config.json
@@ -7,24 +7,24 @@
     "http_login": "demo",
     "http_password": "demo",
     "http_port": ":8083",
-    "log_level": "debug",
-    "rtsp_port": ":5541",
     "https": false,
-    "https_port": ":443",
+    "https_auto_tls": false,
+    "https_auto_tls_name": "",
     "https_cert": "server.crt",
     "https_key": "server.key",
+    "https_port": ":443",
+    "log_level": "debug",
+    "rtsp_port": ":5541",
     "token": {
-      "enable": false,
-      "backend": "http://127.0.0.1/test.php"
+      "backend": "http://127.0.0.1/test.php",
+      "enable": false
     }
-},
+  },
   "streams": {
     "demo": {
       "channels": {
         "0": {
           "debug": true,
-          "on_demand": false,
-          "insecure_skip_verify": true,
           "url": "rtsp://admin:deep18rwip@176.117.205.3:5541/video1"
         }
       },

@ghost ghost closed this Feb 20, 2022
@ghost ghost reopened this Feb 20, 2022
@deepch deepch merged commit 5cc9e35 into deepch:master Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant