mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
feat(api): ✨ Implement Challenges API
This commit is contained in:
parent
924ff9b2d4
commit
8f9472b221
26 changed files with 2656 additions and 104 deletions
13
.github/config.workflow.toml
vendored
13
.github/config.workflow.toml
vendored
|
|
@ -183,6 +183,19 @@ allowed_mime_types = [
|
|||
"video/x-ms-asf",
|
||||
]
|
||||
|
||||
[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 = true
|
||||
# The difficulty of the challenge, higher is harder
|
||||
difficulty = 50000
|
||||
# Challenge expiration time in seconds
|
||||
expiration = 300 # 5 minutes
|
||||
# Leave this empty to generate a new key
|
||||
key = "YBpAV0KZOeM/MZ4kOb2E9moH9gCUr00Co9V7ncGRJ3wbd/a9tLDKKFdI0BtOcnlpfx0ZBh0+w3WSvsl0TsesTg=="
|
||||
|
||||
[defaults]
|
||||
# Default visibility for new notes
|
||||
visibility = "public"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue