cellreverseproxy

package module
v0.0.0-...-1acd473 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CellReverseProxy

type CellReverseProxy struct {
	// DockerHost specifies the Docker socket to connect to (e.g. unix:///var/run/docker.sock).
	DockerHost string `json:"docker_host,omitempty"`
	// WaitTimeout is how long to wait for a container to become healthy.
	WaitTimeout time.Duration `json:"wait_timeout,omitempty"`
	// contains filtered or unexported fields
}

CellReverseProxy is a Caddy module that routes requests by subdomain to Docker containers.

func (CellReverseProxy) CaddyModule

func (CellReverseProxy) CaddyModule() caddy.ModuleInfo

CaddyModule returns the module information.

func (*CellReverseProxy) Provision

func (cp *CellReverseProxy) Provision(ctx caddy.Context) error

Provision sets up the Docker client and starts the refresh loop.

func (CellReverseProxy) ServeHTTP

ServeHTTP routes incoming HTTP requests to the appropriate Docker container.

func (*CellReverseProxy) UnmarshalCaddyfile

func (cp *CellReverseProxy) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile parses Caddyfile tokens.

Jump to

Keyboard shortcuts

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