|
@@ -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,
|