Add templates for s3 filesystems

This commit is contained in:
Ingo Oppermann
2023-01-31 15:54:40 +01:00
parent e3d25b1bdd
commit 49b16f44a8

View File

@@ -510,6 +510,10 @@ func (a *api) start() error {
return a.memfs.Base()
}, nil)
for name, s3 := range a.s3fs {
a.replacer.RegisterTemplate("fs:"+name, s3.Base(), nil)
}
a.replacer.RegisterTemplateFunc("rtmp", func(config *restreamapp.Config, section string) string {
host, port, _ := gonet.SplitHostPort(cfg.RTMP.Address)
if len(host) == 0 {