This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2020-09-02 22:04:12 +00:00
|
|
|
package proxy
|
|
|
|
|
|
|
|
import (
|
|
|
|
"html/template"
|
|
|
|
|
2020-09-30 10:03:18 +00:00
|
|
|
log "github.com/sirupsen/logrus"
|
2021-09-07 14:44:15 +00:00
|
|
|
"goauthentik.io/internal/outpost/proxy/templates"
|
2020-09-02 22:04:12 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func getTemplates() *template.Template {
|
2021-09-07 14:44:15 +00:00
|
|
|
t, err := template.New("foo").Parse(templates.ErrorTemplate)
|
2020-09-02 22:04:12 +00:00
|
|
|
if err != nil {
|
2020-09-30 10:03:18 +00:00
|
|
|
log.Fatalf("failed parsing template %s", err)
|
2020-09-02 22:04:12 +00:00
|
|
|
}
|
|
|
|
return t
|
|
|
|
}
|