mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
feat: add stub_status_port configuration for Nginx settings
This commit is contained in:
parent
2d56914af1
commit
509443a6e7
9 changed files with 88 additions and 40 deletions
|
@ -10,6 +10,14 @@ type Nginx struct {
|
|||
TestConfigCmd string `json:"test_config_cmd" protected:"true"`
|
||||
ReloadCmd string `json:"reload_cmd" protected:"true"`
|
||||
RestartCmd string `json:"restart_cmd" protected:"true"`
|
||||
StubStatusPort uint `json:"stub_status_port" binding:"omitempty,min=1,max=65535"`
|
||||
}
|
||||
|
||||
var NginxSettings = &Nginx{}
|
||||
|
||||
func (n *Nginx) GetStubStatusPort() uint {
|
||||
if n.StubStatusPort == 0 {
|
||||
return 51820
|
||||
}
|
||||
return n.StubStatusPort
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue