fix: 修复 Agent 使用 volume 映射时 PoW/WAF 运行时配置无法加载

This commit is contained in:
ryan
2026-06-21 10:15:18 +08:00
parent 117d473c27
commit a343c7a605
5 changed files with 96 additions and 2 deletions
+6 -1
View File
@@ -103,9 +103,14 @@ local function load_pow_config()
pow_config_dict:set("_domain_keys", table.concat(domain_keys, "\n"), 0)
pow_config_dict:set("_config_hash", current_hash, 0)
return
return true
end
end
if pow_config_dict:add("_pow_unreadable_config_logged", true, 60) then
ngx.log(ngx.WARN, "openflare pow config is not readable by worker; check directory permissions under ", "__OPENFLARE_RUNTIME_CONFIG_DIR__")
end
return false
end
load_pow_config()