From 49b16f44a8568f42a9fdfa700c4eb8b588ac209b Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Tue, 31 Jan 2023 15:54:40 +0100 Subject: [PATCH] Add templates for s3 filesystems --- app/api/api.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/api/api.go b/app/api/api.go index 92f94495..980d2198 100644 --- a/app/api/api.go +++ b/app/api/api.go @@ -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 {