server

package
v0.0.0-...-9ccd474 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: BSD-3-Clause Imports: 41 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DefaultExecutorCount  = 1
	DefaultImageStorage   = "filesystem"
	DefaultImageVarDir    = "/var/lib/gate/image"
	DefaultDatabaseDriver = "sqlite"
	DefaultInventoryDSN   = "file:/var/lib/gate/inventory.sqlite?cache=shared"
	DefaultNet            = "tcp"
	DefaultHTTPAddr       = "localhost:8080"
	DefaultACMECacheDir   = "/var/cache/gate/acme"
)

Variables

View Source
var Defaults = []string{
	"/etc/gate/server.toml",
	"/etc/gate/server.d/*.toml",
}

Functions

func Main

func Main()

Types

type Config

type Config struct {
	Runtime struct {
		runtime.Config
		PrepareProcesses int
		ExecutorCount    int
	}

	Image struct {
		ProgramStorage   string
		PreparePrograms  int
		InstanceStorage  string
		PrepareInstances int
		VarDir           string
	}

	Inventory map[string]database.Config

	Service map[string]interface{}

	Server struct {
		server.Config

		UID int
		GID int
	}

	Access struct {
		Policy string

		Public struct{}

		SSH struct {
			AuthorizedKeys string
		}
	}

	Principal server.AccessConfig

	Source struct {
		HTTP []struct {
			Name string
			httpsource.Config
		}

		IPFS struct {
			ipfs.Config
		}
	}

	HTTP struct {
		Net  string
		Addr string
		web.Config
		AccessDB  map[string]database.Config
		AccessLog string

		TLS struct {
			Enabled  bool
			Domains  []string
			HTTPNet  string
			HTTPAddr string
		}
	}

	ACME struct {
		AcceptTOS    bool
		CacheDir     string
		RenewBefore  time.Duration
		DirectoryURL string
		Email        string
		ForceRSA     bool
	}

	Log struct {
		Syslog  bool
		Verbose bool
	}
}

Jump to

Keyboard shortcuts

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