فهرست منبع

chore: update docs

Jacky 2 ماه پیش
والد
کامیت
5c6036340f
4فایلهای تغییر یافته به همراه7 افزوده شده و 4 حذف شده
  1. 2 0
      docs/guide/env.md
  2. 2 0
      docs/zh_CN/guide/env.md
  3. 2 0
      docs/zh_TW/guide/env.md
  4. 1 4
      internal/nginx/modules.go

+ 2 - 0
docs/guide/env.md

@@ -82,6 +82,8 @@ Applicable for version v2.0.0-beta.37 and above.
 | ReloadCmd             | NGINX_UI_NGINX_RELOAD_CMD         |
 | RestartCmd            | NGINX_UI_NGINX_RESTART_CMD        |
 | LogDirWhiteList       | NGINX_UI_NGINX_LOG_DIR_WHITE_LIST |
+| StubStatusPort        | NGINX_UI_NGINX_STUB_STATUS_PORT   |
+| ContainerName         | NGINX_UI_NGINX_CONTAINER_NAME     |
 
 ## Node
 | Configuration Setting | Environment Variable            |

+ 2 - 0
docs/zh_CN/guide/env.md

@@ -92,6 +92,8 @@
 | ReloadCmd       | NGINX_UI_NGINX_RELOAD_CMD         |
 | RestartCmd      | NGINX_UI_NGINX_RESTART_CMD        |
 | LogDirWhiteList | NGINX_UI_NGINX_LOG_DIR_WHITE_LIST |
+| StubStatusPort  | NGINX_UI_NGINX_STUB_STATUS_PORT   |
+| ContainerName   | NGINX_UI_NGINX_CONTAINER_NAME     |
 
 ## Node
 

+ 2 - 0
docs/zh_TW/guide/env.md

@@ -92,6 +92,8 @@
 | ReloadCmd       | NGINX_UI_NGINX_RELOAD_CMD         |
 | RestartCmd      | NGINX_UI_NGINX_RESTART_CMD        |
 | LogDirWhiteList | NGINX_UI_NGINX_LOG_DIR_WHITE_LIST |
+| StubStatusPort  | NGINX_UI_NGINX_STUB_STATUS_PORT   |
+| ContainerName   | NGINX_UI_NGINX_CONTAINER_NAME     |
 
 ## Node
 

+ 1 - 4
internal/nginx/modules.go

@@ -101,9 +101,7 @@ func updateDynamicModulesStatus() {
 	// Look for lines like "load_module modules/ngx_http_image_filter_module.so;"
 	loadModuleRe := regexp.MustCompile(`load_module\s+(?:modules/|/.*/)([a-zA-Z0-9_-]+)\.so;`)
 	matches := loadModuleRe.FindAllStringSubmatch(out, -1)
-
-	// Create a map of loaded dynamic modules
-	loadedDynamicModules := make(map[string]bool)
+	
 	for _, match := range matches {
 		if len(match) > 1 {
 			// Extract the module name without path and suffix
@@ -111,7 +109,6 @@ func updateDynamicModulesStatus() {
 			// Some normalization to match format in GetModules
 			moduleName = strings.TrimPrefix(moduleName, "ngx_")
 			moduleName = strings.TrimSuffix(moduleName, "_module")
-			loadedDynamicModules[moduleName] = true
 			module, ok := modulesCache.Get(moduleName)
 			if ok {
 				module.Loaded = true