config

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPath          string
	DefaultUnixAdminPath = "/run/soju/admin"
)

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Driver, Source string
}

type DB

type DB struct {
	Driver, Source string
}

type FileUpload

type FileUpload struct {
	Driver, Source string
}

type IPSet

type IPSet []*net.IPNet

func (IPSet) Contains

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

type MsgStore

type MsgStore struct {
	Driver, Source string
}

type Server

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

	DB         DB
	MsgStore   MsgStore
	Auth       Auth
	FileUpload *FileUpload

	HTTPOrigins    []string
	HTTPIngress    string
	AcceptProxyIPs IPSet

	MaxUserNetworks           int
	UpstreamUserIPs           []*net.IPNet
	DisableInactiveUsersDelay time.Duration
	EnableUsersOnAuth         bool
}

func Defaults

func Defaults() *Server

func Load

func Load(filename 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