2020-10-03 23:35:03 +02:00
|
|
|
package config
|
|
|
|
|
|
|
|
import "path/filepath"
|
|
|
|
|
|
|
|
const (
|
2021-02-19 08:05:52 +01:00
|
|
|
// StaticVersionNumber is the version of Owncast that is used when it's not overwritten via build-time settings.
|
2023-11-21 03:02:04 +01:00
|
|
|
StaticVersionNumber = "0.1.3" // Shown when you build from develop
|
2021-02-19 08:05:52 +01:00
|
|
|
// FfmpegSuggestedVersion is the version of ffmpeg we suggest.
|
2021-01-09 01:09:00 +01:00
|
|
|
FfmpegSuggestedVersion = "v4.1.5" // Requires the v
|
2021-04-12 01:44:50 +02:00
|
|
|
// DataDirectory is the directory we save data to.
|
|
|
|
DataDirectory = "data"
|
2022-12-12 17:40:43 +01:00
|
|
|
// EmojiDir defines the URL route prefix for emoji requests.
|
|
|
|
EmojiDir = "/img/emoji/"
|
2022-08-10 04:56:45 +02:00
|
|
|
// MaxUserColor is the largest color value available to assign to users.
|
|
|
|
// They start at 0 and can be treated as IDs more than colors themselves.
|
|
|
|
MaxUserColor = 7
|
2022-08-15 03:09:16 +02:00
|
|
|
// MaxChatDisplayNameLength is the maximum length of a chat display name.
|
|
|
|
MaxChatDisplayNameLength = 30
|
2020-10-03 23:35:03 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2021-06-14 00:28:59 +02:00
|
|
|
// BackupDirectory is the directory we write backup files to.
|
|
|
|
BackupDirectory = filepath.Join(DataDirectory, "backup")
|
2021-09-12 20:32:42 +02:00
|
|
|
|
|
|
|
// HLSStoragePath is the directory HLS video is written to.
|
|
|
|
HLSStoragePath = filepath.Join(DataDirectory, "hls")
|
2022-06-26 08:06:31 +02:00
|
|
|
|
2022-12-12 17:40:43 +01:00
|
|
|
// CustomEmojiPath is the emoji directory.
|
2022-06-26 08:06:31 +02:00
|
|
|
CustomEmojiPath = filepath.Join(DataDirectory, "emoji")
|
2023-01-18 02:03:28 +01:00
|
|
|
|
|
|
|
// PublicFilesPath is the optional directory for hosting public files.
|
|
|
|
PublicFilesPath = filepath.Join(DataDirectory, "public")
|
2023-12-10 01:31:50 +01:00
|
|
|
|
|
|
|
// DisableResponseCaching will disable caching of API and resource
|
|
|
|
// responses. Disable this feature to turn off the optimizations.
|
|
|
|
DisableResponseCaching = false
|
2020-10-03 23:35:03 +02:00
|
|
|
)
|