config

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StaticVersionNumber is the version of Owncast that is used when it's not overwritten via build-time settings.
	StaticVersionNumber = "0.0.10" // Shown when you build from develop
	// WebRoot is the web server root directory.
	WebRoot = "webroot"
	// FfmpegSuggestedVersion is the version of ffmpeg we suggest.
	FfmpegSuggestedVersion = "v4.1.5" // Requires the v
	// DataDirectory is the directory we save data to.
	DataDirectory = "data"
	// EmojiDir is relative to the webroot.
	EmojiDir = "/img/emoji"
)
View Source
const MaxSocketPayloadSize = 2048

MaxSocketPayloadSize is the maximum payload we will allow to to be received via the chat socket.

Variables

View Source
var (
	// BackupDirectory is the directory we write backup files to.
	BackupDirectory = filepath.Join(DataDirectory, "backup")

	// HLSStoragePath is the directory HLS video is written to.
	HLSStoragePath = filepath.Join(DataDirectory, "hls")
)
View Source
var BuildPlatform = "dev"

BuildPlatform is the optional platform this release was built for.

View Source
var DatabaseFilePath = "data/owncast.db"

DatabaseFilePath is the path to the file ot be used as the global database for this run of the application.

View Source
var DefaultForbiddenUsernames = []string{
	"owncast", "operator", "admin", "system",
}

DefaultForbiddenUsernames are a list of usernames forbidden from being used in chat.

View Source
var EnableDebugFeatures = false

EnableDebugFeatures will print additional data to help in debugging.

View Source
var GitCommit = ""

GitCommit is an optional commit this build was made from.

View Source
var InternalHLSListenerPort = "8927"

InternalHLSListenerPort is the port for HLS writes that is used for this execution of the service.

View Source
var LogDirectory = "./data/logs"

LogDirectory is the path to various log files.

View Source
var VersionNumber = StaticVersionNumber

VersionNumber is the current version string.

View Source
var WebServerIP = "0.0.0.0"

WebServerIP is the IP address to bind the web server to. All interfaces by default.

View Source
var WebServerPort = 8080

WebServerPort is the port for Owncast's webserver that is used for this execution of the service.

Functions

func GetCommit

func GetCommit() string

GetCommit will return an identifier used for identifying the point in time this build took place.

func GetReleaseString

func GetReleaseString() string

GetReleaseString gets the version string.

func VerifyFFMpegPath

func VerifyFFMpegPath(path string) error

VerifyFFMpegPath verifies that the path exists, is a file, and is executable.

Types

type Defaults

type Defaults struct {
	Name                 string
	Title                string
	Summary              string
	ServerWelcomeMessage string
	Tags                 []string
	PageBodyContent      string

	DatabaseFilePath string
	WebServerPort    int
	WebServerIP      string
	RTMPServerPort   int
	StreamKey        string

	YPEnabled bool
	YPServer  string

	SegmentLengthSeconds int
	SegmentsInPlaylist   int
	StreamVariants       []models.StreamOutputVariant
}

Defaults will hold default configuration values.

func GetDefaults

func GetDefaults() Defaults

GetDefaults will return default configuration values.

Jump to

Keyboard shortcuts

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