constants.go 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. package config
  2. import "path/filepath"
  3. const (
  4. // StaticVersionNumber is the version of Owncast that is used when it's not overwritten via build-time settings.
  5. StaticVersionNumber = "0.2.0" // Shown when you build from develop
  6. // FfmpegSuggestedVersion is the version of ffmpeg we suggest.
  7. FfmpegSuggestedVersion = "v4.1.5" // Requires the v
  8. // DataDirectory is the directory we save data to.
  9. DataDirectory = "data"
  10. // EmojiDir defines the URL route prefix for emoji requests.
  11. EmojiDir = "/img/emoji/"
  12. // MaxUserColor is the largest color value available to assign to users.
  13. // They start at 0 and can be treated as IDs more than colors themselves.
  14. MaxUserColor = 7
  15. // MaxChatDisplayNameLength is the maximum length of a chat display name.
  16. MaxChatDisplayNameLength = 30
  17. )
  18. var (
  19. // BackupDirectory is the directory we write backup files to.
  20. BackupDirectory = filepath.Join(DataDirectory, "backup")
  21. // HLSStoragePath is the directory HLS video is written to.
  22. HLSStoragePath = filepath.Join(DataDirectory, "hls")
  23. // CustomEmojiPath is the emoji directory.
  24. CustomEmojiPath = filepath.Join(DataDirectory, "emoji")
  25. // PublicFilesPath is the optional directory for hosting public files.
  26. PublicFilesPath = filepath.Join(DataDirectory, "public")
  27. )