Skip to content

DoMaLo/caddy-regru

Repository files navigation

Caddy DNS Provider for reg.ru

This package contains a DNS provider for Caddy that allows automatic SSL certificate generation using reg.ru DNS API.

Features

  • Automatic SSL certificate generation using ACME DNS-01 challenge
  • Support for reg.ru API credentials

Installation

Prerequisites

Install xcaddy:

go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest  

Build Caddy with this plugin

xcaddy build --with github.com/DoMaLo/caddy-regru

Or if you're developing locally:

git clone https://github.com/DoMaLo/caddy-regru
cd caddy-regru
xcaddy build --with github.com/DoMaLo/caddy-regru=./

Configuration

Environment Variables

Set your reg.ru credentials as environment variables:

export REGRU_USERNAME="your-username"
export REGRU_PASSWORD="your-password"

Caddyfile

*.example.com {
    tls {
        dns regru {
            username {$REGRU_USERNAME}
            password {$REGRU_PASSWORD}
        }
    }
    respond "Hello from wildcard domain"
}

Development

Running Tests

make test

Running Tests with Coverage

make test-coverage

Building Caddy with Plugin

make build-caddy

Running Example

make run-example

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors