mirror of
https://github.com/versia-pub/server.git
synced 2026-03-12 21:39:15 +01:00
feat(config): ✨ Add JSON schema for config
This commit is contained in:
parent
d20988afa1
commit
7d1522cc1e
5 changed files with 4023 additions and 2 deletions
|
|
@ -1,3 +1,5 @@
|
|||
#:schema config.schema.json
|
||||
|
||||
[database]
|
||||
# Main PostgreSQL database connection
|
||||
host = "localhost"
|
||||
|
|
@ -412,7 +414,7 @@ duration_coeff = 1.0
|
|||
# Amount to multiply every route's max requests per [duration] by
|
||||
max_coeff = 1.0
|
||||
|
||||
[custom_ratelimits]
|
||||
[ratelimits.custom]
|
||||
# Add in any API route in this style here
|
||||
# Applies before the global ratelimit changes
|
||||
# "/api/v1/accounts/:id/block" = { duration = 30, max = 60 }
|
||||
|
|
|
|||
4012
config/config.schema.json
Normal file
4012
config/config.schema.json
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue