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:
loveuer
2024-12-23 00:07:44 -08:00
parent aac6c67a5f
commit 6e866b83e4
57 changed files with 22226 additions and 7343 deletions

View File

@ -1,16 +1,27 @@
package opt
import "errors"
import (
"errors"
"net/url"
)
const (
DefaultMaxSize = 1024 * 1024 * 1024
ReferrersEnabled = true
BaseAddress = "repo.me"
RoleMustLess = true
)
type config struct {
Debug bool
RepoName string
Address string
DataPath string
Proxy string
}
var (
Debug = false
Cfg = &config{}
Proxy *url.URL
ErrNotFound = errors.New("not found")
)