Move hcaptcha service config to config_for yml (#30662)

This commit is contained in:
Matt Jankowski 2024-10-23 10:25:43 -04:00 committed by GitHub
parent 35f008aa2a
commit 97b18d10b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 2 deletions

View file

@ -109,6 +109,7 @@ module Mastodon
end
end
config.x.captcha = config_for(:captcha)
config.x.translation = config_for(:translation)
config.to_prepare do

3
config/captcha.yml Normal file
View file

@ -0,0 +1,3 @@
shared:
secret_key: <%= ENV.fetch('HCAPTCHA_SECRET_KEY', nil) %>
site_key: <%= ENV.fetch('HCAPTCHA_SITE_KEY', nil) %>