feat: customize local environment name #313

This commit is contained in:
Jacky 2024-05-07 11:20:35 +08:00
parent 4c74bc8619
commit 1e9de6f21b
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
13 changed files with 78 additions and 36 deletions

View file

@ -20,7 +20,8 @@ type Server struct {
GithubProxy string `json:"github_proxy" binding:"omitempty,url"`
CertRenewalInterval int `json:"cert_renewal_interval" binding:"min=7,max=21"`
RecursiveNameservers []string `json:"recursive_nameservers" binding:"omitempty,dive,hostname_port"`
SkipInstallation bool `json:"skip_installation"`
SkipInstallation bool `json:"skip_installation" protected:"true"`
Name string `json:"name" binding:"omitempty,alpha_num_dash_dot"`
}
func (s *Server) GetCADir() string {