0

Make setting extraUserInfoFileName optional

This commit is contained in:
Gabe Kangas 2020-07-13 15:10:16 -07:00
parent b23adcecb1
commit 15f24b84ce
2 changed files with 7 additions and 1 deletions

View File

@ -2,7 +2,6 @@ instanceDetails:
name: Owncast
title: Owncast Demo Server
summary: "This is brief summary of whom you are or what your stream is. You can read more about it at owncast.online. You can edit this description in your config file."
extraUserInfoFileName: "/static/content.md"
logo:
small: /img/logo128.png

View File

@ -207,5 +207,12 @@ func Load(filePath string, versionInfo string) error {
Config.VersionInfo = versionInfo
// Defaults
// This is relative to the webroot, not the project root.
if Config.InstanceDetails.ExtraInfoFile == "" {
Config.InstanceDetails.ExtraInfoFile = "/static/content.md"
}
return Config.verifySettings()
}