config

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin added in v1.5.0

type Admin struct {
	Static     string
	PathPrefix string
	ProxyAuth  string
	Username   string
	Password   string
}

type Config

type Config interface {
	Init(cmd *cobra.Command) error
	Set()
}

type Room

type Room struct {
	Mux    bool
	EprMin uint16
	EprMax uint16

	NAT1To1IPs           []string
	NekoImages           []string
	NekoPrivilegedImages []string
	PathPrefix           string
	Labels               []string
	WaitEnabled          bool
	StopTimeoutSec       int

	StorageEnabled  bool
	StorageInternal string
	StorageExternal string

	MountsWhitelist []string

	InstanceName    string
	InstanceUrl     *url.URL
	InstanceNetwork string

	Traefik Traefik
}

func (*Room) GetInstanceUrl

func (s *Room) GetInstanceUrl() url.URL

func (*Room) GetRoomUrl

func (s *Room) GetRoomUrl(roomName string) string

func (Room) Init

func (Room) Init(cmd *cobra.Command) error

func (*Room) Set

func (s *Room) Set()

type Root

type Root struct {
	Debug   bool
	Logs    bool
	CfgFile string
}

func (Root) Init

func (Root) Init(cmd *cobra.Command) error

func (*Root) Set

func (s *Root) Set()

type Server

type Server struct {
	Cert  string
	Key   string
	Bind  string
	Proxy bool
	CORS  bool
	PProf bool

	Admin Admin
}

func (Server) Init

func (Server) Init(cmd *cobra.Command) error

func (*Server) Set

func (s *Server) Set()

type Traefik added in v1.5.0

type Traefik struct {
	Enabled      bool
	Domain       string
	Entrypoint   string
	Certresolver string
	Port         string // deprecated
}

Jump to

Keyboard shortcuts

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