Make db-uri, db-schemas and db-anon-role optional in example config file

This commit is contained in:
Wolfgang Walther
2022-01-24 14:56:06 +01:00
committed by Wolfgang Walther
parent 5a627e76b2
commit 1b9a30cff4
+9 -5
View File
@@ -125,12 +125,16 @@ readCLIShowHelp =
exampleConfigFile :: [Char]
exampleConfigFile =
[str|### REQUIRED:
|db-uri = "postgres://user:pass@localhost:5432/dbname"
|db-schema = "public"
|db-anon-role = "postgres"
[str|## The standard connection URI format, documented at
|## https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
|db-uri = "postgresql://"
|
|## The name of which database schema to expose to REST clients
|db-schemas = "public"
|
|## The database role to use when no client authentication is provided
|# db-anon-role = "anon"
|
|### OPTIONAL:
|## Number of open connections in the pool
|db-pool = 10
|