adonis-recaptcha2
Version:
Google reCAPTCHA v2 for AdonisJS
55 lines (49 loc) • 1.37 kB
Plain Text
/*
* adonis-recaptcha2
*
* Source: https://git.io/JnNoc
*/
import Env from '@ioc:Adonis/Core/Env'
import { RecaptchaConfig } from '@ioc:Adonis/Addons/Recaptcha2'
const recaptchaConfig: RecaptchaConfig = {
/*
|--------------------------------------------------------------------------
| Site Key
|--------------------------------------------------------------------------
|
| The key for form
|
*/
siteKey: Env.get('RECAPTCHA_SITE_KEY'),
/*
|--------------------------------------------------------------------------
| Secret Key
|--------------------------------------------------------------------------
|
| The shared key between your site and reCAPTCHA
| * Don`t tell it to anyone
|
*/
secretKey: Env.get('RECAPTCHA_SECRET_KEY'),
/*
|--------------------------------------------------------------------------
| SSL (default: true)
|--------------------------------------------------------------------------
|
| Optional
|
| Disable if you don't want to access the Google API via a secure connection
|
*/
ssl: true,
/*
|--------------------------------------------------------------------------
| Views
|--------------------------------------------------------------------------
|
| Enable if you need use recaptcha in Views
|
*/
views: false
}
export default recaptchaConfig