summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@protonmail.com>2021-03-03 21:15:20 +0100
committerLibravatar tsmethurst <tobi.smethurst@protonmail.com>2021-03-03 21:15:20 +0100
commit18d0685ef1947dea66a95a9d5e023ca5b4a39762 (patch)
treeecaa3734f4cdb0df3185c32fb69708e7d7c04417 /example
parentfurther yak shaving (diff)
downloadgotosocial-18d0685ef1947dea66a95a9d5e023ca5b4a39762.tar.xz
further fun
Diffstat (limited to 'example')
-rw-r--r--example/config.yaml37
1 files changed, 37 insertions, 0 deletions
diff --git a/example/config.yaml b/example/config.yaml
new file mode 100644
index 000000000..bc87ecdf4
--- /dev/null
+++ b/example/config.yaml
@@ -0,0 +1,37 @@
+# String. Log level to use throughout the application. Must be lower-case.
+# Options: ["debug","info","warn","error","fatal"]
+# Default: "info"
+logLevel: "info"
+
+# String. Application name to use internally.
+# Examples: ["My Application","gotosocial"]
+# Default: "gotosocial"
+applicationName: "gotosocial"
+
+# Config pertaining to the Gotosocial database connection
+db:
+ # String. Database type.
+ # Options: ["postgres"]
+ # Default: "postgres"
+ type: "postgres"
+
+ # String. Database address. Can be either an ipv4 address or a hostname.
+ # Examples: ["localhost","my.db.host","127.0.0.1","192.111.39.110"]
+ # Default: "localhost"
+ address: "127.0.0.1"
+
+ # Int. Port for database connection.
+ # Examples: [5432, 1234, 6969]
+ # Default: 5432
+ port: 5432
+
+ # String. Username for the database connection.
+ # Examples: ["mydbuser","postgres","gotosocial"]
+ # Default: "postgres"
+ user: "postgres"
+
+ # REQUIRED
+ # String. Password to use for the database connection
+ # Examples: ["password123","verysafepassword","postgres"]
+ # Default: ""
+ password: ""