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 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 }
Click to show internal directories.
Click to hide internal directories.