loveuer 6e866b83e4 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
2024-12-23 22:46:34 -08:00

28 lines
344 B
Go

package opt
import (
"errors"
"net/url"
)
const (
DefaultMaxSize = 1024 * 1024 * 1024
ReferrersEnabled = true
RoleMustLess = true
)
type config struct {
Debug bool
RepoName string
Address string
DataPath string
Proxy string
}
var (
Cfg = &config{}
Proxy *url.URL
ErrNotFound = errors.New("not found")
)