Ver código fonte

Don't indent TOML keys deeper than their sections

Caleb Maclennan 4 anos atrás
pai
commit
708ec66d9b
2 arquivos alterados com 28 adições e 28 exclusões
  1. 11 11
      config-demo.toml
  2. 17 17
      config.toml.sample

+ 11 - 11
config-demo.toml

@@ -1,15 +1,15 @@
 [app]
 [app]
-    # Interface and port where the app will run its webserver.
-    address = "0.0.0.0:9000"
+# Interface and port where the app will run its webserver.
+address = "0.0.0.0:9000"
 
 
 # Database.
 # Database.
 [db]
 [db]
-    host = "demo-db"
-    port = 5432
-    user = "listmonk"
-    password = "listmonk"
-    database = "listmonk"
-    ssl_mode = "disable"
-    max_open = 25
-    max_idle = 25
-    max_lifetime = "300s"
+host = "demo-db"
+port = 5432
+user = "listmonk"
+password = "listmonk"
+database = "listmonk"
+ssl_mode = "disable"
+max_open = 25
+max_idle = 25
+max_lifetime = "300s"

+ 17 - 17
config.toml.sample

@@ -1,22 +1,22 @@
 [app]
 [app]
-    # Interface and port where the app will run its webserver.
-    address = "0.0.0.0:9000"
+# Interface and port where the app will run its webserver.
+address = "0.0.0.0:9000"
 
 
-    # BasicAuth authentication for the admin dashboard. This will eventually
-    # be replaced with a better multi-user, role-based authentication system.
-    # IMPORTANT: Leave both values empty to disable authentication on admin
-    # only where an external authentication is already setup.
-    admin_username = "listmonk"
-    admin_password = "listmonk"
+# BasicAuth authentication for the admin dashboard. This will eventually
+# be replaced with a better multi-user, role-based authentication system.
+# IMPORTANT: Leave both values empty to disable authentication on admin
+# only where an external authentication is already setup.
+admin_username = "listmonk"
+admin_password = "listmonk"
 
 
 # Database.
 # Database.
 [db]
 [db]
-    host = "db"
-    port = 5432
-    user = "listmonk"
-    password = "listmonk"
-    database = "listmonk"
-    ssl_mode = "disable"
-    max_open = 25
-    max_idle = 25
-    max_lifetime = "300s"
+host = "db"
+port = 5432
+user = "listmonk"
+password = "listmonk"
+database = "listmonk"
+ssl_mode = "disable"
+max_open = 25
+max_idle = 25
+max_lifetime = "300s"