Reformat default config

pull/4/head
Trivernis 5 years ago
parent 03a5dcbcc7
commit dccdc2593f

@ -1,35 +1,43 @@
# Configuration of the database connection # Configuration of the database connection
[database] [database]
# A connection uri string to the database # A connection uri string to the database
connectionUri = "sqlite://greenvironment.db" connectionUri = "sqlite://greenvironment.db"
# Configuration for the redis connection # Configuration for the redis connection
[redis] [redis]
# A connection uri string to the redis server # A connection uri string to the redis server
connectionUri = "redis://localhost:6379" connectionUri = "redis://localhost:6379"
# Configuration of the http server # Configuration of the http server
[server] [server]
# The port the server is running on # The port the server is running on
port = 8080 port = 8080
# Allow cross origin requests # Allow cross origin requests
cors = false cors = false
# The timeout for a server response # The timeout for a server response
timeout = 30000 timeout = 30000
# Configuration for the sessions # Configuration for the sessions
[session] [session]
# A secret that is used for the sessions. Must be secure # A secret that is used for the sessions. Must be secure
secret = "REPLACE WITH SAFE RANDOM GENERATED SECRET" secret = "REPLACE WITH SAFE RANDOM GENERATED SECRET"
# The maximum age of a cookie. The age is reset with every request of the client # The maximum age of a cookie. The age is reset with every request of the client
cookieMaxAge = 6048e+5 # 7 days cookieMaxAge = 6048e+5 # 7 days
# Configuration for markdown rendering # Configuration for markdown rendering
[markdown] [markdown]
# The plugins used in the markdown parser # The plugins used in the markdown parser
plugins = ["markdown-it-emoji"] plugins = ["markdown-it-emoji"]
@ -61,16 +69,22 @@ maxQueryComplexity = 5000
# Configuration for the api rate limit # Configuration for the api rate limit
[api.rateLimit] [api.rateLimit]
# rate limit of /upload # rate limit of /upload
[api.rateLimit.upload] [api.rateLimit.upload]
# The time in milliseconds before the rate limit is reset # The time in milliseconds before the rate limit is reset
expire = 60000 expire = 60000
# The total number of calls allowed before rate limiting # The total number of calls allowed before rate limiting
total = 10 total = 10
# rate limit of /graphql # rate limit of /graphql
[api.rateLimit.graphql] [api.rateLimit.graphql]
# The time in milliseconds before the rate limit is reset # The time in milliseconds before the rate limit is reset
expire = 60000 expire = 60000
# The total number of calls allowed before rate limiting # The total number of calls allowed before rate limiting
total = 30 total = 30

Loading…
Cancel
Save