refactor public sharing backend to use frontend selection, rather than hard-wired frontend zids (#110)

This commit is contained in:
Michael Quigley
2022-12-06 11:48:59 -05:00
parent 95adcfe10a
commit 081a558ba2
7 changed files with 33 additions and 18 deletions

View File

@ -102,6 +102,6 @@ func realRemoteAddress(req *http.Request) string {
return ip
}
func proxyUrl(svcToken string) string {
return strings.Replace(cfg.Proxy.UrlTemplate, "{svcToken}", svcToken, -1)
func proxyUrl(svcToken, template string) string {
return strings.Replace(template, "{svcToken}", svcToken, -1)
}