caddyconfig

package
v0.0.0-...-62e798e Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTPPortKey  = "general/httpPort"
	HTTPSPortKey = "general/httpsPort"
	AllowH2CKey  = "general/allowH2C"

	TLSKey = "tls"
)

Variables

This section is empty.

Functions

func InitDefaultPortConf

func InitDefaultPortConf(httpPort, httpsPort int) error

func SetConfiguration

func SetConfiguration(configuration *Configuration) error

Types

type Configuration

type Configuration struct {
	General General `json:"general"`
	TLS     TLS     `json:"tls"`
}

func GetConfiguration

func GetConfiguration() *Configuration

type General

type General struct {
	HTTPPort  int `json:"HTTPPort"`
	HTTPSPort int `json:"HTTPSPort"`

	AllowH2C bool `json:"allowH2C"`
}

type TLS

type TLS struct {
	DNSChallenges   map[string]caddytls.DNSChallengeConfig `json:"dnsChallenges"`
	WildcardDomains []string                               `json:"wildcardDomains"`
}

Jump to

Keyboard shortcuts

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