Compare commits
No commits in common. "efe68feef33e9115270d64901cbacbc7d6f800ee" and "576c5d749c6c7b71bf00e052c70b26498920947a" have entirely different histories.
efe68feef3
...
576c5d749c
2 changed files with 1 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,3 @@
|
|||
cache/
|
||||
rootfs/
|
||||
test
|
||||
gitea-ci/gitea-ci
|
||||
|
|
|
@ -7,13 +7,8 @@ import (
|
|||
"strings"
|
||||
|
||||
"gitea.nulo.in/Nulo/repro-run/gitea-ci/gitea"
|
||||
|
||||
_ "embed"
|
||||
)
|
||||
|
||||
//go:embed index.html
|
||||
var index []byte
|
||||
|
||||
func main() {
|
||||
config := parseConfig()
|
||||
|
||||
|
@ -36,7 +31,7 @@ func main() {
|
|||
|
||||
http.Handle("/webhook", webhook{config: config, gitea: g})
|
||||
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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue