caddyfile

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CaddyGroup = "uncloud"
	VerifyPath = "/.uncloud-verify"
)

Variables

This section is empty.

Functions

func GenerateConfig

func GenerateConfig(containers []api.ServiceContainer, verifyResponse string) (*caddy.Config, error)

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller monitors container changes in the cluster store and generates a configuration file for Caddy reverse proxy. The generated Caddyfile allows Caddy to route external traffic to service containers across the internal network.

func NewController

func NewController(store *store.Store, path string, verifyResponse string) (*Controller, error)

func (*Controller) Run

func (c *Controller) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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