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:
@ -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")
|
||||
)
|
||||
|
Reference in New Issue
Block a user