mirror of
https://github.com/datarhei/core.git
synced 2025-09-26 20:11:29 +08:00
Add templates for s3 filesystems
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user