新增静态资源路径支持

This commit is contained in:
dragon
2025-09-18 16:41:17 +08:00
parent 7961084e80
commit abba011a61
4 changed files with 31 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ func main() {
defer giteaServer.Close()
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM, syscall.SIGQUIT)
defer stop()
svc := http.Server{Addr: config.Bind, Handler: giteaServer}
go func() {
select {