proxy

package
v0.0.0-...-f4175bf Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableTlsForHost

func EnableTlsForHost(hostname string) error

EnableTlsForHost creates the certificate files necessary for the specified hostname in the falcon certs directory and adds them to the Traefik dynamic config that gets mounted inside the falcon-proxy container.

func Start

func Start(client docker.DockerClient) error

Start starts up the falcon-proxy so that it can start forwarding requests.

func Stop

func Stop(client docker.DockerClient) error

Stop stops the falcon-proxy container.

Types

type DynamicConfig

type DynamicConfig struct {
	Tls struct {
		Certificates []TlsFilesConfig `yaml:"certificates,omitempty"`
	} `yaml:"tls,omitempty"`
}

type TlsFilesConfig

type TlsFilesConfig struct {
	CertFile string `yaml:"certFile,omitempty"`
	KeyFile  string `yaml:"keyFile,omitempty"`
}

Jump to

Keyboard shortcuts

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