caddy_network_fd

package module
v0.0.0-...-5074aa6 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

Socket Activation for Caddy

Useful in deployments where sockets are passed by systemd.

Usage

Caddy Configuration
localhost:443 {
    bind socket-activation/https
    respond "ok"
}

Using socket activation requires every site block to have explicit bind, it can be used in a snippet to avoid repetition.

Usage

Commandline
systemd-socket-activate -l 443 --fdname=https systemd-socket-activate --datagram -l 443 --fdname=https:https caddy run

Documentation

Index

Constants

View Source
const (
	SD_LISTEN_FDS_START = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SocketFile

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

type SocketFilePredicate

type SocketFilePredicate func(*SocketFile) bool

Jump to

Keyboard shortcuts

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