config

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const Name = `nginx`

Variables

This section is empty.

Functions

func DefaultConfigDir added in v1.4.7

func DefaultConfigDir() string

func RenewalCert added in v1.4.7

func RenewalCert(ctx context.Context, customCmd string, domains []string, email string, certDir string) error

Types

type Config

type Config struct {
	Version        string
	CertPathFormat engine.CertPathFormat
	*engine.CommonConfig
}

func New added in v1.4.7

func New() *Config

func (*Config) CopyFrom added in v1.4.7

func (c *Config) CopyFrom(m *dbschema.NgingVhostServer)

func (*Config) FixEngineConfigFile added in v1.4.7

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

func (*Config) GetCertPathFormat added in v1.4.7

func (c *Config) GetCertPathFormat() engine.CertPathFormat

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() error

func (*Config) OnVhostConfigSaving added in v1.4.7

func (c *Config) OnVhostConfigSaving(id uint, formData *form.Values) error

func (*Config) Quit

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

func (*Config) Reload

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

func (*Config) RemoveCertFile added in v1.4.7

func (c *Config) RemoveCertFile(id uint) error

func (*Config) RemoveVhostConfig added in v1.4.7

func (c *Config) RemoveVhostConfig(id uint) error

func (*Config) RenewalCert added in v1.4.7

func (c *Config) RenewalCert(ctx context.Context, id uint, domains []string, email string) error

func (*Config) Reopen

func (c *Config) Reopen(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