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
28 lines
344 B
Go
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")
|
|
)
|