feat(api): Implement Challenges API

This commit is contained in:
Jesse Wierzbinski 2024-06-13 22:03:51 -10:00
parent 924ff9b2d4
commit 8f9472b221
No known key found for this signature in database
26 changed files with 2656 additions and 104 deletions

View file

@ -252,6 +252,19 @@ enforce_mime_types = false
# Defaults to all valid MIME types
# allowed_mime_types = []
[validation.challenges]
# "Challenges" (aka captchas) are a way to verify that a user is human
# Lysand's challenges use no external services, and are Proof of Work based
# This means that they do not require any user interaction, instead
# they require the user's computer to do a small amount of work
enabled = false
# The difficulty of the challenge, higher is will take more time to solve
difficulty = 50000
# Challenge expiration time in seconds
expiration = 300 # 5 minutes
# Leave this empty to generate a new key
key = ""
[defaults]
# Default visibility for new notes
# Can be public, unlisted, private or direct