Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Make setting extraUserInfoFileName optional

Gabe Kangas6dd3eae6ea77
diff --git a/config-example.yaml b/config-example.yaml
index 35a8d65185..dea953155b 100644
--- a/config-example.yaml
+++ b/config-example.yaml
@@ -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
diff --git a/config/config.go b/config/config.go
index 159e9d7bfc..938fcd18bd 100644
--- a/config/config.go
+++ b/config/config.go
@@ -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()
}