mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
refactor: refresh webui
This commit is contained in:
parent
59d59dd3ed
commit
4c7e037b76
138 changed files with 2232 additions and 1071 deletions
|
@ -1,5 +1,9 @@
|
|||
package settings
|
||||
|
||||
import (
|
||||
"github.com/go-acme/lego/v4/lego"
|
||||
)
|
||||
|
||||
type Server struct {
|
||||
HttpHost string `json:"http_host" protected:"true"`
|
||||
HttpPort string `json:"http_port" protected:"true"`
|
||||
|
@ -16,6 +20,18 @@ type Server struct {
|
|||
GithubProxy string `json:"github_proxy" binding:"omitempty,url"`
|
||||
}
|
||||
|
||||
func (s *Server) GetCADir() string {
|
||||
if s.Demo {
|
||||
return lego.LEDirectoryStaging
|
||||
}
|
||||
|
||||
if s.CADir != "" {
|
||||
return s.CADir
|
||||
}
|
||||
|
||||
return lego.LEDirectoryProduction
|
||||
}
|
||||
|
||||
var ServerSettings = Server{
|
||||
HttpHost: "0.0.0.0",
|
||||
HttpPort: "9000",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue