add captcha config
@@ -159,6 +159,7 @@ type WebServer struct {
LandingPage LandingPage `json:"landingpage"`
DebugPublicAddr string `json:"debugpublicaddr,omitempty"`
RateLimit WebServerRatelimit `json:"ratelimit"`
+ Captcha Captcha `json:"captcha"`
}
// WebServerTLS wraps preferences for the TLS
@@ -249,6 +250,13 @@ type CodeExecRanna struct {
ApiVersion string `json:"apiversion"`
}
+// Captcha holds the configuration for a
+// captcha verification.
+type Captcha struct {
+ SiteKey string `json:"sitekey"`
+ SecretKey string `json:"secretkey"`
+}
+
// Config wraps the whole configuration structure
// including a version, which must not be changed
// by users to identify the integrity of config
