Compare commits

..

No commits in common. "efe68feef33e9115270d64901cbacbc7d6f800ee" and "576c5d749c6c7b71bf00e052c70b26498920947a" have entirely different histories.

2 changed files with 1 additions and 7 deletions

1
.gitignore vendored
View file

@ -1,4 +1,3 @@
cache/ cache/
rootfs/ rootfs/
test test
gitea-ci/gitea-ci

View file

@ -7,13 +7,8 @@ import (
"strings" "strings"
"gitea.nulo.in/Nulo/repro-run/gitea-ci/gitea" "gitea.nulo.in/Nulo/repro-run/gitea-ci/gitea"
_ "embed"
) )
//go:embed index.html
var index []byte
func main() { func main() {
config := parseConfig() config := parseConfig()
@ -36,7 +31,7 @@ func main() {
http.Handle("/webhook", webhook{config: config, gitea: g}) http.Handle("/webhook", webhook{config: config, gitea: g})
http.Handle("/logs/socket/", logWebsocket{}) http.Handle("/logs/socket/", logWebsocket{})
http.Handle("/", staticRoute{file: index, mime: "text/html; charset=utf-8"}) http.Handle("/", http.FileServer(http.Dir(".")))
log.Fatal(http.ListenAndServe(port, nil)) log.Fatal(http.ListenAndServe(port, nil))
} }