mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 02:45:49 +02:00
enhance: validate settings value before save
This commit is contained in:
parent
d70e37c857
commit
d67b8428e4
8 changed files with 83 additions and 26 deletions
|
@ -10,10 +10,10 @@ type Server struct {
|
|||
Email string `json:"email" protected:"true"`
|
||||
Database string `json:"database" protected:"true"`
|
||||
StartCmd string `json:"start_cmd" protected:"true"`
|
||||
CADir string `json:"ca_dir"`
|
||||
CADir string `json:"ca_dir" binding:"omitempty,url"`
|
||||
Demo bool `json:"demo" protected:"true"`
|
||||
PageSize int `json:"page_size" protected:"true"`
|
||||
GithubProxy string `json:"github_proxy"`
|
||||
GithubProxy string `json:"github_proxy" binding:"omitempty,url"`
|
||||
}
|
||||
|
||||
var ServerSettings = Server{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue