feat: as docker mirror registry
feat: add global proxy config upgrade: upgrade front(angular) to 19 chore: deployment staff 1. Dockerfile: build frontend, backend, and run in nginx base image
This commit is contained in:
@ -2,11 +2,12 @@ package api
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/loveuer/nf"
|
||||
|
||||
"nf-repo/internal/handler"
|
||||
"nf-repo/internal/interfaces"
|
||||
"nf-repo/internal/middleware/front"
|
||||
"nf-repo/internal/opt"
|
||||
|
||||
"github.com/loveuer/nf"
|
||||
)
|
||||
|
||||
func NewApi(
|
||||
@ -23,14 +24,14 @@ func NewApi(
|
||||
}
|
||||
|
||||
{
|
||||
api := app.Group("/api/repo")
|
||||
api := app.Group("/_api/repo")
|
||||
api.Get("/settings", handler.RepoSettings)
|
||||
api.Get("/list", handler.RepoList(mh))
|
||||
api.Get("/tag/list", handler.TagList(mh))
|
||||
api.Post("/proxy", handler.ProxyDownloadImage(mh, bh))
|
||||
}
|
||||
|
||||
app.Use(front.NewFront(&front.DefaultFront, "dist/front/browser"))
|
||||
// app.Use(front.NewFront(&front.DefaultFront, "dist/front/browser"))
|
||||
|
||||
return app
|
||||
}
|
||||
|
Reference in New Issue
Block a user