mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +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
|
@ -1,8 +1,8 @@
|
|||
package settings
|
||||
|
||||
type Nginx struct {
|
||||
AccessLogPath string `json:"access_log_path"`
|
||||
ErrorLogPath string `json:"error_log_path"`
|
||||
AccessLogPath string `json:"access_log_path" binding:"omitempty,file"`
|
||||
ErrorLogPath string `json:"error_log_path" binding:"omitempty,file"`
|
||||
ConfigDir string `json:"config_dir" protected:"true"`
|
||||
PIDPath string `json:"pid_path" protected:"true"`
|
||||
TestConfigCmd string `json:"test_config_cmd" protected:"true"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue