TinyShip
TinyShip
 TinyShip
TinyShip
TinyShip Documentation
TinyShip User GuideGetting StartedBasic Configuration
Credits System Configuration
Storage Service ConfigurationCaptcha Configuration
User Guide

Captcha Configuration

Configure human verification functionality

TinyShip uses Cloudflare Turnstile as the captcha solution to protect login and registration forms from bot attacks.

Related Pages

PagePathDescription
Sign In/signinCaptcha can be enabled
Sign Up/signupCaptcha can be enabled

Setup Steps

  1. Visit Cloudflare Dashboard
  2. Go to Turnstile page
  3. Add site to get keys

Environment Variables

NEXT_PUBLIC_TURNSTILE_SITE_KEY="0x4AAA..."
TURNSTILE_SECRET_KEY="0x4AAA..."

Enable Captcha

// config/captcha.ts
export const captchaConfig = {
  enabled: true,
  provider: 'turnstile',
}

Development Environment

Cloudflare provides test keys:

# Always pass
NEXT_PUBLIC_TURNSTILE_SITE_KEY="1x00000000000000000000AA"
TURNSTILE_SECRET_KEY="1x0000000000000000000000000000000AA"

# Always fail
NEXT_PUBLIC_TURNSTILE_SITE_KEY="2x00000000000000000000AB"
TURNSTILE_SECRET_KEY="2x0000000000000000000000000000000AB"

Storage Service Configuration

Configure file storage service

Deployment

TinyShip deployment guide

On this page

Related PagesSetup StepsEnvironment VariablesEnable CaptchaDevelopment Environment