This is an automated email from the ASF dual-hosted git repository.
zhaoqingran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
The following commit(s) were added to refs/heads/master by this push:
new f4a0fe3445 [fix] fixed CSP blocking algolia from loading on the page
(#3935)
f4a0fe3445 is described below
commit f4a0fe3445ae01880953bdc8b3e5ee4789909b40
Author: Duansg <[email protected]>
AuthorDate: Tue Dec 30 09:56:58 2025 +0800
[fix] fixed CSP blocking algolia from loading on the page (#3935)
---
.../current/help/nginx.md | 17 +++++++++--------
.../current/help/tomcat.md | 5 +++--
.../version-v1.6.x/help/nginx.md | 17 +++++++++--------
.../version-v1.6.x/help/tomcat.md | 5 +++--
home/static/.htaccess | 2 ++
5 files changed, 26 insertions(+), 20 deletions(-)
diff --git
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nginx.md
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nginx.md
index 50837f7939..496f5e285a 100644
--- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nginx.md
+++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nginx.md
@@ -29,7 +29,7 @@ keywords: [开源监控工具, 开源Java监控工具, 监控Nginx指标]
```shell
./configure --prefix=/usr/local/nginx --with-http_stub_status_module
-
+
make && make install
```
@@ -66,15 +66,15 @@ keywords: [开源监控工具, 开源Java监控工具, 监控Nginx指标]
```shell
# install `ngx_http_reqstat_module`
wget https://github.com/zls0424/ngx_req_status/archive/master.zip -O
ngx_req_status.zip
-
+
unzip ngx_req_status.zip
-
+
patch -p1 < ../ngx_req_status-master/write_filter.patch
-
+
./configure --prefix=/usr/local/nginx
--add-module=/path/to/ngx_req_status-master
-
+
make -j2
-
+
make install
```
@@ -87,9 +87,9 @@ keywords: [开源监控工具, 开源Java监控工具, 监控Nginx指标]
http {
req_status_zone server_name $server_name 256k;
req_status_zone server_addr $server_addr 256k;
-
+
req_status server_name server_addr;
-
+
server {
location /req-status {
req_status_show on;
@@ -108,6 +108,7 @@ keywords: [开源监控工具, 开源Java监控工具, 监控Nginx指标]
4. 在浏览器访问 `http://localhost/req-status` 即可查看 Nginx 监控状态信息。
+<!-- markdown-link-check-disable -->
**参考文档: <https://blog.csdn.net/weixin_55985097/article/details/116722309>**
**⚠️注意监控模块的端点路径为 `/nginx-status` `/req-status`**
diff --git
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/tomcat.md
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/tomcat.md
index e1f112777f..f9d75f4921 100644
--- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/tomcat.md
+++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/tomcat.md
@@ -1,6 +1,6 @@
---
-id: tomcat
-title: 监控:Tomcat监控
+id: tomcat
+title: 监控:Tomcat监控
sidebar_label: Tomcat监控
keywords: [开源监控系统, 开源网站监控, Tomcat监控]
---
@@ -72,4 +72,5 @@ keywords: [开源监控系统, 开源网站监控, Tomcat监控]
CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote
-Djava.rmi.server.hostname=10.1.1.52 -Dcom.sun.management.jmxremote.port=1099
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false"
```
+<!-- markdown-link-check-disable -->
参考: <https://blog.csdn.net/weixin_41924764/article/details/108694239>
diff --git
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.6.x/help/nginx.md
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.6.x/help/nginx.md
index 50837f7939..496f5e285a 100644
---
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.6.x/help/nginx.md
+++
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.6.x/help/nginx.md
@@ -29,7 +29,7 @@ keywords: [开源监控工具, 开源Java监控工具, 监控Nginx指标]
```shell
./configure --prefix=/usr/local/nginx --with-http_stub_status_module
-
+
make && make install
```
@@ -66,15 +66,15 @@ keywords: [开源监控工具, 开源Java监控工具, 监控Nginx指标]
```shell
# install `ngx_http_reqstat_module`
wget https://github.com/zls0424/ngx_req_status/archive/master.zip -O
ngx_req_status.zip
-
+
unzip ngx_req_status.zip
-
+
patch -p1 < ../ngx_req_status-master/write_filter.patch
-
+
./configure --prefix=/usr/local/nginx
--add-module=/path/to/ngx_req_status-master
-
+
make -j2
-
+
make install
```
@@ -87,9 +87,9 @@ keywords: [开源监控工具, 开源Java监控工具, 监控Nginx指标]
http {
req_status_zone server_name $server_name 256k;
req_status_zone server_addr $server_addr 256k;
-
+
req_status server_name server_addr;
-
+
server {
location /req-status {
req_status_show on;
@@ -108,6 +108,7 @@ keywords: [开源监控工具, 开源Java监控工具, 监控Nginx指标]
4. 在浏览器访问 `http://localhost/req-status` 即可查看 Nginx 监控状态信息。
+<!-- markdown-link-check-disable -->
**参考文档: <https://blog.csdn.net/weixin_55985097/article/details/116722309>**
**⚠️注意监控模块的端点路径为 `/nginx-status` `/req-status`**
diff --git
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.6.x/help/tomcat.md
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.6.x/help/tomcat.md
index e1f112777f..f9d75f4921 100644
---
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.6.x/help/tomcat.md
+++
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.6.x/help/tomcat.md
@@ -1,6 +1,6 @@
---
-id: tomcat
-title: 监控:Tomcat监控
+id: tomcat
+title: 监控:Tomcat监控
sidebar_label: Tomcat监控
keywords: [开源监控系统, 开源网站监控, Tomcat监控]
---
@@ -72,4 +72,5 @@ keywords: [开源监控系统, 开源网站监控, Tomcat监控]
CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote
-Djava.rmi.server.hostname=10.1.1.52 -Dcom.sun.management.jmxremote.port=1099
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false"
```
+<!-- markdown-link-check-disable -->
参考: <https://blog.csdn.net/weixin_41924764/article/details/108694239>
diff --git a/home/static/.htaccess b/home/static/.htaccess
new file mode 100644
index 0000000000..45c0ff3b40
--- /dev/null
+++ b/home/static/.htaccess
@@ -0,0 +1,2 @@
+# CSP permissions for hertzbeat.apache.org - Adding 3rd party service Algolia.
+SetEnv CSP_PROJECT_DOMAINS "https://*.algolia.net/ https://*.algolianet.com/
https://*.algolia.io/"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]