Bläddra i källkod

docs(conf): add more info about using database.url

bergquist 9 år sedan
förälder
incheckning
92a52ccdf7
2 ändrade filer med 10 tillägg och 0 borttagningar
  1. 3 0
      conf/defaults.ini
  2. 7 0
      conf/sample.ini

+ 3 - 0
conf/defaults.ini

@@ -59,6 +59,9 @@ cert_key =
 
 #################################### Database ####################################
 [database]
+# You can configure the database connection by specifying type, host, name, user and password 
+# as seperate properties or as on string using the url propertie.
+
 # Either "mysql", "postgres" or "sqlite3", it's your choice
 type = sqlite3
 host = 127.0.0.1:3306

+ 7 - 0
conf/sample.ini

@@ -61,6 +61,9 @@
 
 #################################### Database ####################################
 [database]
+# You can configure the database connection by specifying type, host, name, user and password 
+# as seperate properties or as on string using the url propertie.
+
 # Either "mysql", "postgres" or "sqlite3", it's your choice
 ;type = sqlite3
 ;host = 127.0.0.1:3306
@@ -68,6 +71,10 @@
 ;user = root
 ;password =
 
+# Use either URL or the previous fields to configure the database
+# Example: mysql://user:secret@host:port/database
+;url =
+
 # For "postgres" only, either "disable", "require" or "verify-full"
 ;ssl_mode = disable