From f56c824974067797b6eada90c20c5ab94bde9a26 Mon Sep 17 00:00:00 2001
From: Steffen Illium <steffen.illium@gmail.com>
Date: Tue, 7 May 2024 12:11:28 +0200
Subject: [PATCH] json validated

---
 apps/sftpgo/base/cm.yaml | 89 ++++++++++++++++++++--------------------
 1 file changed, 44 insertions(+), 45 deletions(-)

diff --git a/apps/sftpgo/base/cm.yaml b/apps/sftpgo/base/cm.yaml
index 2cb0cfe..e513399 100644
--- a/apps/sftpgo/base/cm.yaml
+++ b/apps/sftpgo/base/cm.yaml
@@ -7,55 +7,54 @@ data:
   sftpgo.json: |-
     {
     "defender": {
-      "enabled": true,
-      "driver": "memory",
-      "ban_time": 30,
-      "ban_time_increment": 50,
-      "threshold": 15,
-      "score_invalid": 2,
-      "score_valid": 1,
-      "score_limit_exceeded": 3,
-      "score_no_auth": 0,
-      "observation_time": 30,
-      "entries_soft_limit": 100,
-      "entries_hard_limit": 150
-    },
-    "rate_limiters": [
-      {
-        "average": 0,
-        "period": 1000,
-        "burst": 1,
-        "type": 2,
-        "protocols": [
-          "SSH",
-          "FTP",
-          "DAV",
-          "HTTP"
-        ],
-        "generate_defender_events": false,
+        "enabled": true,
+        "driver": "memory",
+        "ban_time": 30,
+        "ban_time_increment": 50,
+        "threshold": 15,
+        "score_invalid": 2,
+        "score_valid": 1,
+        "score_limit_exceeded": 3,
+        "score_no_auth": 0,
+        "observation_time": 30,
         "entries_soft_limit": 100,
         "entries_hard_limit": 150
-      }
+    },
+    "rate_limiters": [
+        {
+            "average": 0,
+            "period": 1000,
+            "burst": 1,
+            "type": 2,
+            "protocols": [
+                "SSH",
+                "FTP",
+                "DAV",
+                "HTTP"
+            ],
+            "generate_defender_events": false,
+            "entries_soft_limit": 100,
+            "entries_hard_limit": 150
+        }
     ],
     "webdavd": {
-      "bindings": [
-        {
-          "port": 8081,
-          "address": "0.0.0.0",
-          "enable_https": false,
-        }
-      ],
+        "bindings": [
+            {
+                "port": 8081,
+                "address": "0.0.0.0",
+                "enable_https": false
+            }
+        ]
     },
-  
     "telemetry": {
-      "bind_port": 10000,
-      "bind_address": "0.0.0.0",
-      "enable_profiler": false,
-      "auth_user_file": "",
-      "certificate_file": "",
-      "certificate_key_file": "",
-      "min_tls_version": 12,
-      "tls_cipher_suites": [],
-      "tls_protocols": []
-    },
+        "bind_port": 10000,
+        "bind_address": "0.0.0.0",
+        "enable_profiler": false,
+        "auth_user_file": "",
+        "certificate_file": "",
+        "certificate_key_file": "",
+        "min_tls_version": 12,
+        "tls_cipher_suites": [],
+        "tls_protocols": []
+    }
     }
\ No newline at end of file