소스 검색

feat: 添加群二维码

xiaobing.wang 1 년 전
부모
커밋
6ff20821a6

+ 15 - 1
documents/docs/04-practice/03-apisix.md

@@ -177,4 +177,18 @@ include /etc/nginx/safeline_http.conf;
 docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' safeline-detector
 ```
 
-编辑 safeline_http.conf 文件,将里面的 `unix:/data/safeline/resources/detector/detector.sock` 改为 `http://${detector_ip}:8000`
+编辑 safeline_http.conf 文件做出如下修改
+```yaml
+# safeline_http.conf
+  upstream detector_server {
+    keepalive   256;
+    #server      unix:/resources/detector/snserver.sock;
+    server      detector_ip:8000; # 这里填写上面获取到的 detector 的 ip
+}
+```
+
+### 问题答疑
+
+如果在使用过程中遇到问题,可以在加入 SDK 讨论群
+
+![雷池SDK讨论群](/images/docs/sdk_chat.png)

+ 7 - 1
documents/docs/04-practice/04-kong.md

@@ -57,4 +57,10 @@ $ curl -X POST http://localhost:8000?1=1%20and%202=2
 # you will receive a 403 Forbidden response
 {"code": 403, "success":false, "message": "blocked by Chaitin SafeLine Web Application Firewall", "event_id": "8b41a021ea9541c89bb88f3773b4da24"}
 ```
-打开雷池的控制台界面,可以看到雷池记录了完整的攻击信息。
+打开雷池的控制台界面,可以看到雷池记录了完整的攻击信息。
+
+### 问题答疑
+
+如果在使用过程中遇到问题,可以在加入 SDK 讨论群
+
+![雷池SDK讨论群](/images/docs/sdk_chat.png)

+ 20 - 1
documents/docs/04-practice/05-ingress-nginx.md

@@ -158,4 +158,23 @@ env:
 
 ```shell
 curl http://localhost:80/ -H "Host: example.com" -H "User-Agent: () { :; }; echo; echo; /bin/bash -c 'echo hello'"
-```
+```
+
+你会看到返回 403 Forbidden,说明 Safeline 插件生效了。
+
+```json
+{
+  "code": 403,
+  "success": false,
+  "message": "blocked by Chaitin SafeLine Web Application Firewall",
+  "event_id": "18e0f220f7a94127acb21ad3c1b4ac47"
+}
+```
+
+在雷池的控制台界面,可以看到雷池记录了完整的攻击信息。
+
+### 问题答疑
+
+如果在使用过程中遇到问题,可以在加入 SDK 讨论群
+
+![雷池SDK讨论群](/images/docs/sdk_chat.png)

BIN
documents/static/images/docs/sdk_chat.png