summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorEkaterina Vaartis <vaartis@cock.li>2018-12-16 22:04:43 +0300
committerEkaterina Vaartis <vaartis@cock.li>2018-12-16 22:08:17 +0300
commit6062885df6178c09544b6a0b5b731a554786397e (patch)
tree217e25d217309046dbef51c1253f4a79ae0f54de /config
parent2e72d49e373abf2957df82db6f8031c62936f9ba (diff)
downloadpleroma-6062885df6178c09544b6a0b5b731a554786397e.tar.gz
pleroma-6062885df6178c09544b6a0b5b731a554786397e.zip
Add a configurable auto-cleanup for captchas
Diffstat (limited to 'config')
-rw-r--r--config/config.exs1
-rw-r--r--config/config.md1
2 files changed, 2 insertions, 0 deletions
diff --git a/config/config.exs b/config/config.exs
index 5149e9c41..21cdc0537 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -12,6 +12,7 @@ config :pleroma, Pleroma.Repo, types: Pleroma.PostgresTypes
config :pleroma, Pleroma.Captcha,
enabled: false,
+ minutes_retained: 5,
method: Pleroma.Captcha.Kocaptcha
config :pleroma, Pleroma.Captcha.Kocaptcha, endpoint: "http://localhost:9093"
diff --git a/config/config.md b/config/config.md
index e8b5e52cb..65f0866fd 100644
--- a/config/config.md
+++ b/config/config.md
@@ -167,6 +167,7 @@ Web Push Notifications configuration. You can use the mix task `mix web_push.gen
## Pleroma.Captcha
* `enabled`: Whether the captcha should be shown on registration
* `method`: The method/service to use for captcha
+* `minutes_retained`: The time in minutes for which the captcha is valid (stored in the cache)
### Pleroma.Captcha.Kocaptcha
Kocaptcha is a very simple captcha service with a single API endpoint,