config

package
v0.0.0-...-1c39bb0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2025 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxTemporaryChallenges       = 10000
	MaxChallengesUpdateRate      = 100 // per second
	MaxDnscheckWatchers          = 100
	MaxDnscheckLargeResponseRate = 10 // per second
)

Variables

This section is empty.

Functions

func ParsePrivateKey

func ParsePrivateKey(s string) []byte

Types

type Config

type Config struct {
	HTTPSocketPath        string
	RequestLogPath        string
	DatabasePath          string
	TLSCertPath           string
	TLSKeyPath            string
	ResponseAddrs         dnsutil.IPCollection
	LookupUpstream        string
	IPInfoBaseURL         string
	MyaddrTurnstileSecret string
	DnscheckZones         []struct {
		*dnscheck.DnscheckHandler
		PrivateKey string
	}
	ChallengesZone struct {
		*dnsutil.SimpleHandler
		PrivateKey string
	}
	DynZone struct {
		*dnsutil.SimpleHandler
		PrivateKey string
	}
	IPZone struct {
		*dnsutil.SimpleHandler
		PrivateKey string
	}
	CnameZone struct {
		*dnsutil.SimpleHandler
		PrivateKey string
	}
	MyaddrZones []struct {
		*dnsutil.SimpleHandler
		PrivateKey string
	}
}

func ParseConfig

func ParseConfig(path string) *Config

func (*Config) Run

func (config *Config) Run()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL