mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
feat(wip): docker ui only
This commit is contained in:
parent
c62fd25b2e
commit
d4a4ed1e1c
43 changed files with 1269 additions and 372 deletions
|
@ -11,6 +11,7 @@ type Nginx struct {
|
|||
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"`
|
||||
ContainerName string `json:"container_name" protected:"true"`
|
||||
}
|
||||
|
||||
var NginxSettings = &Nginx{}
|
||||
|
@ -21,3 +22,7 @@ func (n *Nginx) GetStubStatusPort() uint {
|
|||
}
|
||||
return n.StubStatusPort
|
||||
}
|
||||
|
||||
func (n *Nginx) RunningInAnotherContainer() bool {
|
||||
return n.ContainerName != ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue