Make setting extraUserInfoFileName optional
This commit is contained in:
parent
b23adcecb1
commit
15f24b84ce
@ -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
|
||||
|
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user