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 committed 2024-12-23 22:46:34 -08:00
1 parent aac6c67a5f
commit 6e866b83e4
57 files changed
+22226 -7343

No files matched your search

+14 -3
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")
)