@extends('layouts.app') @section('title', 'Cloudflare Settings') @section('content')

Cloudflare Settings

Configure Cloudflare API integration for automatic DNS management

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
@endif @if($isConfigured)

Cloudflare integration is configured

Automatic DNS management is available

@else

Cloudflare integration not configured

Configure API credentials below to enable automatic DNS management

@endif
@csrf @method('PUT')

Cloudflare API Credentials

Enter your Cloudflare API credentials to enable automatic DNS record management

Create an API token at: Cloudflare Dashboard
Required permissions: Zone.DNS (Edit)

Find your Zone ID in the Cloudflare dashboard under your domain's Overview section

Your Cloudflare account email (optional, but recommended for legacy API key authentication)

@if($isConfigured)
@endif

Server Configuration

Server settings for DNS record creation

The IP address where custom domains should point. This will be used when creating DNS A records.

Automation Settings

Configure automatic domain management features

Automatically create DNS records in Cloudflare when sellers add a new custom domain.
⚠️ Requires valid Cloudflare API credentials and server IP configured

Automatically verify domains by checking DNS propagation after record creation.
⚠️ This will verify domains as soon as DNS resolves correctly

Save your Cloudflare settings to enable automatic DNS management

How to get Cloudflare API credentials:

  1. Login to your Cloudflare account at dash.cloudflare.com
  2. Go to My ProfileAPI Tokens
  3. Click Create Token
  4. Use Edit zone DNS template or create custom token with Zone.DNS (Edit) permission
  5. Copy the generated API token
  6. Find your Zone ID in your domain's Overview page (right sidebar)

📚 Full documentation: Custom Domain Setup Guide

@endsection