mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-15 19:03:09 -06:00
Panic when keys are not present
This commit is contained in:
parent
28f60bec4e
commit
4438ae62b6
|
|
@ -44,6 +44,17 @@ func SetupClientAPIComponent(
|
||||||
asAPI appserviceAPI.AppServiceQueryAPI,
|
asAPI appserviceAPI.AppServiceQueryAPI,
|
||||||
transactionsCache *transactions.Cache,
|
transactionsCache *transactions.Cache,
|
||||||
) {
|
) {
|
||||||
|
if base.Cfg.Matrix.RecaptchaEnabled &&
|
||||||
|
(base.Cfg.Matrix.RecaptchaPublicKey == "" ||
|
||||||
|
base.Cfg.Matrix.RecaptchaPrivateKey == "" ||
|
||||||
|
base.Cfg.Matrix.RecaptchaSiteVerifyAPI == "") {
|
||||||
|
logrus.Panicf(
|
||||||
|
"Recaptcha configs are missing. " +
|
||||||
|
"Ensure that recaptcha_public_key, recaptcha_private_key and " +
|
||||||
|
"recaptcha_siteverify_api are specified",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
roomserverProducer := producers.NewRoomserverProducer(inputAPI)
|
roomserverProducer := producers.NewRoomserverProducer(inputAPI)
|
||||||
typingProducer := producers.NewTypingServerProducer(typingInputAPI)
|
typingProducer := producers.NewTypingServerProducer(typingInputAPI)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue