config

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPSet

type IPSet []*net.IPNet

func (IPSet) Contains

func (set IPSet) Contains(ip net.IP) bool

type Server

type Server struct {
	Listen   []string
	TLS      *TLS
	Hostname string
	Title    string
	MOTDPath string

	SQLDriver string
	SQLSource string
	LogPath   string

	HTTPOrigins    []string
	AcceptProxyIPs IPSet

	MaxUserNetworks int
	MultiUpstream   bool
	UpstreamUserIPs []*net.IPNet
}

func Defaults

func Defaults() *Server

func Load

func Load(path string) (*Server, error)

type TLS

type TLS struct {
	CertPath, KeyPath string
}

Jump to

Keyboard shortcuts

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