95bce9c9e7
* outposts/proxy: always embed static assets, still check local Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * ci: add initial ci to build outpost as binary Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * ci: fix typo, build web Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * ci: upload to release on publish, only run linux on ci Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * ci: ensure latest go is used Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * ci: split e2e tests into two halves Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
20 lines
274 B
Go
20 lines
274 B
Go
//go:build outpost_static_embed
|
|
// +build outpost_static_embed
|
|
|
|
package web
|
|
|
|
import (
|
|
"embed"
|
|
"net/http"
|
|
)
|
|
|
|
//go:embed dist/*
|
|
var StaticDist embed.FS
|
|
|
|
//go:embed authentik
|
|
var StaticAuthentik embed.FS
|
|
|
|
func init() {
|
|
StaticHandler = http.FileServer(http.FS(StaticDist))
|
|
}
|