You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
1.8 KiB
TOML
90 lines
1.8 KiB
TOML
# Configuration of the database connection
|
|
[database]
|
|
|
|
# A connection uri string to the database
|
|
connectionUri = "sqlite://greenvironment.db"
|
|
|
|
|
|
# Configuration for the redis connection
|
|
[redis]
|
|
|
|
# A connection uri string to the redis server
|
|
connectionUri = "redis://localhost:6379"
|
|
|
|
|
|
# Configuration of the http server
|
|
[server]
|
|
|
|
# The port the server is running on
|
|
port = 8080
|
|
|
|
# Allow cross origin requests
|
|
cors = false
|
|
|
|
# The timeout for a server response
|
|
timeout = 30000
|
|
|
|
|
|
# Configuration for the sessions
|
|
[session]
|
|
|
|
# A secret that is used for the sessions. Must be secure
|
|
secret = "REPLACE WITH SAFE RANDOM GENERATED SECRET"
|
|
|
|
# The maximum age of a cookie. The age is reset with every request of the client
|
|
cookieMaxAge = 6048e+5 # 7 days
|
|
|
|
|
|
# Configuration for logging
|
|
[logging]
|
|
|
|
# The loglevel
|
|
level = "info"
|
|
|
|
|
|
# Configuration for the frontend files
|
|
[frontend]
|
|
|
|
# The path to the angular index file. Its relative to the public path.
|
|
angularIndex = "index.html"
|
|
|
|
# The path to the public files
|
|
publicPath = "./public"
|
|
|
|
# Configuration for the api
|
|
[api]
|
|
|
|
# if graphiql should be enabled
|
|
graphiql = true
|
|
|
|
# The maximum complexity of queries
|
|
maxQueryComplexity = 5000
|
|
|
|
# sets the image format for the site. Values: png or webp
|
|
imageFormat = "png"
|
|
|
|
# the max file size for uploading in bytes
|
|
maxFileSize = 5_242_880
|
|
|
|
# Configuration for the api rate limit
|
|
[api.rateLimit]
|
|
|
|
# rate limit of /upload
|
|
[api.rateLimit.upload]
|
|
|
|
# The time in milliseconds before the rate limit is reset
|
|
expire = 60000
|
|
|
|
# The total number of calls allowed before rate limiting
|
|
total = 10
|
|
|
|
|
|
# rate limit of /graphql
|
|
[api.rateLimit.graphql]
|
|
|
|
# The time in milliseconds before the rate limit is reset
|
|
expire = 60000
|
|
|
|
# The total number of calls allowed before rate limiting
|
|
total = 60
|