caddymain

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

README

Testing the Permissin plugin

TLS

There are prepared certifictes in the certs directory. Here are some commands for testing:

# test with valid certificate
curl -k --cert certs/greg.crt --key certs/greg.key https://localhost:2015/tmp/

# test with invalid certificate
curl -k --cert certs/fakegreg.crt --key certs/fakegreg.key https://localhost:2015/tmp/

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnableTelemetry = false

EnableTelemetry defines whether telemetry is enabled in Run.

Functions

func LoadEnvFromFile

func LoadEnvFromFile(envFile string) error

LoadEnvFromFile loads additional envs if file provided and exists Envs in file should be in KEY=VALUE format

func ParseEnvFile

func ParseEnvFile(envInput io.Reader) (map[string]string, error)

ParseEnvFile implements parse logic for environment files

func Run

func Run()

Run is Caddy's main() function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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