mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
fix: update to use GetStubStatusPort method for Nginx settings
This commit is contained in:
parent
acf2d13ded
commit
b59da3e7e8
1 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,7 @@ func IsStubStatusEnabled() (bool, string) {
|
||||||
for _, server := range ngxConfig.Servers {
|
for _, server := range ngxConfig.Servers {
|
||||||
protocol := StubStatusProtocol
|
protocol := StubStatusProtocol
|
||||||
host := StubStatusHost
|
host := StubStatusHost
|
||||||
port := settings.NginxSettings.StubStatusPort
|
port := settings.NginxSettings.GetStubStatusPort()
|
||||||
|
|
||||||
for _, location := range server.Locations {
|
for _, location := range server.Locations {
|
||||||
// Check if the location content contains stub_status
|
// Check if the location content contains stub_status
|
||||||
|
@ -200,7 +200,7 @@ server {
|
||||||
|
|
||||||
data := StubStatusTemplateData{
|
data := StubStatusTemplateData{
|
||||||
ModifiedTime: time.Now().Format(time.DateTime),
|
ModifiedTime: time.Now().Format(time.DateTime),
|
||||||
Port: settings.NginxSettings.StubStatusPort,
|
Port: settings.NginxSettings.GetStubStatusPort(),
|
||||||
ServerName: "localhost",
|
ServerName: "localhost",
|
||||||
StatusPath: StubStatusPath,
|
StatusPath: StubStatusPath,
|
||||||
AllowIP: StubStatusAllow,
|
AllowIP: StubStatusAllow,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue