Add templates for s3 filesystems
This commit is contained in:
parent
e3d25b1bdd
commit
49b16f44a8
1 changed files with 4 additions and 0 deletions
|
|
@ -510,6 +510,10 @@ func (a *api) start() error {
|
||||||
return a.memfs.Base()
|
return a.memfs.Base()
|
||||||
}, nil)
|
}, 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 {
|
a.replacer.RegisterTemplateFunc("rtmp", func(config *restreamapp.Config, section string) string {
|
||||||
host, port, _ := gonet.SplitHostPort(cfg.RTMP.Address)
|
host, port, _ := gonet.SplitHostPort(cfg.RTMP.Address)
|
||||||
if len(host) == 0 {
|
if len(host) == 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue