config

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Name = `caddy2`

Variables

This section is empty.

Functions

func DefaultConfigDir added in v1.4.7

func DefaultConfigDir() string

Types

type Config

type Config struct {
	*engine.CommonConfig
	// contains filtered or unexported fields
}

func New added in v1.4.7

func New() *Config

func (*Config) FixEngineConfigFile added in v1.4.7

func (c *Config) FixEngineConfigFile(deleteMode ...bool) (bool, error)

func (*Config) GetVhostConfigDirAbs added in v1.4.7

func (c *Config) GetVhostConfigDirAbs() (string, error)

func (*Config) GetVhostConfigLocalDirAbs added in v1.4.7

func (c *Config) GetVhostConfigLocalDirAbs() (string, error)

func (*Config) Init

func (c *Config) Init() *Config

func (*Config) InstallModule added in v1.4.7

func (c *Config) InstallModule(ctx context.Context, module string) error

Caddy 2.4.4 and up supports adding a module directly: $ caddy add-package github.com/caddyserver/transform-encoder

func (*Config) Reload

func (c *Config) Reload(ctx context.Context) error

func (*Config) Start

func (c *Config) Start(ctx context.Context) error

func (*Config) Stop

func (c *Config) Stop(ctx context.Context) error

func (*Config) TestConfig added in v1.4.7

func (c *Config) TestConfig(ctx context.Context) error

Jump to

Keyboard shortcuts

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