mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-18 16:25:16 +01:00
7873a0312a
1. Update the nginx.conf 2. Update Makefile 3. Update docker-compose 4. Update image name 5. Rename folder ui to core 6. Change the harbor-ui's package name to core 7. Remove unused static file on harbor-core 8. Remove unused code for harbor-portal Signed-off-by: Qian Deng <dengq@vmware.com>
24 lines
511 B
Go
24 lines
511 B
Go
package controllers
|
|
|
|
import (
|
|
"github.com/astaxie/beego"
|
|
"github.com/goharbor/harbor/src/core/proxy"
|
|
)
|
|
|
|
// RegistryProxy is the endpoint on UI for a reverse proxy pointing to registry
|
|
type RegistryProxy struct {
|
|
beego.Controller
|
|
}
|
|
|
|
// Handle is the only entrypoint for incoming requests, all requests must go through this func.
|
|
func (p *RegistryProxy) Handle() {
|
|
req := p.Ctx.Request
|
|
rw := p.Ctx.ResponseWriter
|
|
proxy.Handle(rw, req)
|
|
}
|
|
|
|
// Render ...
|
|
func (p *RegistryProxy) Render() error {
|
|
return nil
|
|
}
|