0

Remove references to config file. #1697

This commit is contained in:
Gabe Kangas 2022-01-31 16:01:34 -08:00
parent ade392e5db
commit 3f974ce7db
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
3 changed files with 3 additions and 3 deletions

View File

@ -80,7 +80,7 @@ func IndexHandler(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, path.Join(config.WebRoot, r.URL.Path)) http.ServeFile(w, r, path.Join(config.WebRoot, r.URL.Path))
} }
// Return a basic HTML page with server-rendered metadata from the config file // Return a basic HTML page with server-rendered metadata from the config
// to give to Opengraph clients and web scrapers (bots, web crawlers, etc). // to give to Opengraph clients and web scrapers (bots, web crawlers, etc).
func handleScraperMetadataPage(w http.ResponseWriter, r *http.Request) { func handleScraperMetadataPage(w http.ResponseWriter, r *http.Request) {
tmpl, err := static.GetBotMetadataTemplate() tmpl, err := static.GetBotMetadataTemplate()

View File

@ -541,7 +541,7 @@ func GetVideoCodec() string {
// VerifySettings will perform a sanity check for specific settings values. // VerifySettings will perform a sanity check for specific settings values.
func VerifySettings() error { func VerifySettings() error {
if GetStreamKey() == "" { if GetStreamKey() == "" {
return errors.New("no stream key set. Please set one in your config file") return errors.New("no stream key set. Please set one via the admin or command line arguments.")
} }
logoPath := GetLogoPath() logoPath := GetLogoPath()

View File

@ -232,7 +232,7 @@ func ValidatedFfmpegPath(ffmpegPath string) string {
cmd := exec.Command("which", "ffmpeg") cmd := exec.Command("which", "ffmpeg")
out, err := cmd.CombinedOutput() out, err := cmd.CombinedOutput()
if err != nil { if err != nil {
log.Fatalln("Unable to determine path to ffmpeg. Please specify it in the config file.") log.Fatalln("Unable to determine path to ffmpeg. Please specify it in the admin or place a copy in the Owncast directory.")
} }
path := strings.TrimSpace(string(out)) path := strings.TrimSpace(string(out))