caddy

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2017 License: Apache-2.0 Imports: 15 Imported by: 5

Documentation

Overview

Copyright 2016 Wenhui Shen <www.webx.top>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultCAUrl  = `https://acme-v01.api.letsencrypt.org/directory`
	DefaultConfig = &Config{
		CAUrl:      DefaultCAUrl,
		CATimeout:  int64(acme.HTTPClient.Timeout.Seconds()),
		ServerType: `http`,
		CPU:        `100%`,
		PidFile:    `./caddy.pid`,
	}
	DefaultVersion = `v0.1.0`
)

Functions

func Fixed

func Fixed(c *Config)

func TrapSignals

func TrapSignals()

Types

type Config

type Config struct {
	Agreed     bool   `json:"agreed"`     //Agree to the CA's Subscriber Agreement
	CAUrl      string `json:"caURL"`      //URL to certificate authority's ACME server directory
	Caddyfile  string `json:"caddyFile"`  //Caddyfile to load (default caddy.DefaultConfigFile)
	CPU        string `json:"cpu"`        //CPU cap
	CAEmail    string `json:"caEmail"`    //Default ACME CA account email address
	CATimeout  int64  `json:"caTimeout"`  //Default ACME CA HTTP timeout
	LogFile    string `json:"logFile"`    //Process log file
	PidFile    string `json:"pidFile"`    //Path to write pid file
	Quiet      bool   `json:"quiet"`      //Quiet mode (no initialization output)
	Revoke     string `json:"revoke"`     //Hostname for which to revoke the certificate
	ServerType string `json:"serverType"` //Type of server to run

	//---
	Plugins bool `json:"plugins"` //List installed plugins
	Version bool `json:"version"` //Show version
	// contains filtered or unexported fields
}

func (*Config) Init

func (c *Config) Init() *Config

func (*Config) Restart

func (c *Config) Restart()

func (*Config) Start

func (c *Config) Start()

func (*Config) Stop

func (c *Config) Stop()

Jump to

Keyboard shortcuts

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