diff --git a/.gitignore b/.gitignore index f751563..30bb0b8 100644 --- a/.gitignore +++ b/.gitignore @@ -34,4 +34,5 @@ test/report *.tgz doc_compiled.md docs-md/cn/doc.md -docs-md/en/doc.md \ No newline at end of file +docs-md/en/doc.md +docs/gitbook/gitbook-plugin-livereload/ \ No newline at end of file diff --git a/docs-src/cn/README.md b/docs-src/cn/README.md index c36b1e9..96876d8 100644 --- a/docs-src/cn/README.md +++ b/docs-src/cn/README.md @@ -536,8 +536,8 @@ module.exports = { anyproxy --rule rule_sample/sample_use_local_response.js ``` ```js -/* - sample: +/* + sample: intercept all requests toward httpbin.org, use a local response test: curl http://httpbin.org/user-agent --proxy http://127.0.0.1:8001 @@ -566,8 +566,8 @@ module.exports = { anyproxy --rule rule_sample/sample_modify_request_header.js ``` ```js -/* - sample: +/* + sample: modify the user-agent in requests toward httpbin.org test: curl http://httpbin.org/user-agent --proxy http://127.0.0.1:8001 @@ -655,8 +655,8 @@ module.exports = { anyproxy --rule rule_sample/sample_modify_request_protocol.js ``` ```js -/* - sample: +/* + sample: redirect all http requests of httpbin.org to https test: curl 'http://httpbin.org/get?show_env=1' --proxy http://127.0.0.1:8001 @@ -685,8 +685,8 @@ module.exports = { anyproxy --rule rule_sample/sample_modify_response_statuscode.js ``` ```js -/* - sample: +/* + sample: modify all status code of http://httpbin.org/ to 404 test: curl -I 'http://httpbin.org/user-agent' --proxy http://127.0.0.1:8001 @@ -714,8 +714,8 @@ module.exports = { anyproxy --rule rule_sample/sample_modify_response_header.js ``` ```js -/* - sample: +/* + sample: modify response header of http://httpbin.org/user-agent test: curl -I 'http://httpbin.org/user-agent' --proxy http://127.0.0.1:8001 @@ -743,8 +743,8 @@ module.exports = { anyproxy --rule rule_sample/sample_modify_response_data.js ``` ```js -/* - sample: +/* + sample: modify response data of http://httpbin.org/user-agent test: curl 'http://httpbin.org/user-agent' --proxy http://127.0.0.1:8001 @@ -827,7 +827,7 @@ module.exports = { * 设置 -> 安全性与位置信息 -> 加密与凭据 -> 从存储设备安装。找到你下载的证书文件,进行安装 * 设置 -> 安全 -> 从SD卡安装证书。找到你下载的证书文件,进行安装 -不同安卓系统支持安装的证书文件类型也不尽相同,大多数系统支持安装拓展名为 .crt 的证书文件,少部分仅支持 .cer 文件(已知如 OPPO R15),AnyProxy 提供了多种类型的证书文件可在下载安装时选择。 +不同安卓系统支持安装的证书文件类型不尽相同,大多支持安装拓展名为 .crt 的证书文件,少部分仅支持 .cer 文件(已知如 OPPO R15),AnyProxy 提供了多种类型的证书文件,可在下载安装时选择。 ### 配置iOS/Android系统代理 diff --git a/docs-src/cn/src_doc.md b/docs-src/cn/src_doc.md index 1241f11..e0adc09 100644 --- a/docs-src/cn/src_doc.md +++ b/docs-src/cn/src_doc.md @@ -628,7 +628,7 @@ module.exports = { * 设置 -> 安全性与位置信息 -> 加密与凭据 -> 从存储设备安装。找到你下载的证书文件,进行安装 * 设置 -> 安全 -> 从SD卡安装证书。找到你下载的证书文件,进行安装 -不同安卓系统支持安装的证书文件类型也不尽相同,大多数系统支持安装拓展名为 .crt 的证书文件,少部分仅支持 .cer 文件(已知如 OPPO R15),AnyProxy 提供了多种类型的证书文件可在下载安装时选择。 +不同安卓系统支持安装的证书文件类型不尽相同,大多支持安装拓展名为 .crt 的证书文件,少部分仅支持 .cer 文件(已知如 OPPO R15),AnyProxy 提供了多种类型的证书文件,可在下载安装时选择。 ### 配置iOS/Android系统代理 diff --git a/docs-src/en/README.md b/docs-src/en/README.md index 4ae4407..c936449 100644 --- a/docs-src/en/README.md +++ b/docs-src/en/README.md @@ -528,8 +528,8 @@ module.exports = { anyproxy --rule rule_sample/sample_use_local_response.js ``` ```js -/* - sample: +/* + sample: intercept all requests toward httpbin.org, use a local response test: curl http://httpbin.org/user-agent --proxy http://127.0.0.1:8001 @@ -558,8 +558,8 @@ module.exports = { anyproxy --rule rule_sample/sample_modify_request_header.js ``` ```js -/* - sample: +/* + sample: modify the user-agent in requests toward httpbin.org test: curl http://httpbin.org/user-agent --proxy http://127.0.0.1:8001 @@ -647,8 +647,8 @@ module.exports = { anyproxy --rule rule_sample/sample_modify_request_protocol.js ``` ```js -/* - sample: +/* + sample: redirect all http requests of httpbin.org to https test: curl 'http://httpbin.org/get?show_env=1' --proxy http://127.0.0.1:8001 @@ -677,8 +677,8 @@ module.exports = { anyproxy --rule rule_sample/sample_modify_response_statuscode.js ``` ```js -/* - sample: +/* + sample: modify all status code of http://httpbin.org/ to 404 test: curl -I 'http://httpbin.org/user-agent' --proxy http://127.0.0.1:8001 @@ -706,8 +706,8 @@ module.exports = { anyproxy --rule rule_sample/sample_modify_response_header.js ``` ```js -/* - sample: +/* + sample: modify response header of http://httpbin.org/user-agent test: curl -I 'http://httpbin.org/user-agent' --proxy http://127.0.0.1:8001 @@ -735,8 +735,8 @@ module.exports = { anyproxy --rule rule_sample/sample_modify_response_data.js ``` ```js -/* - sample: +/* + sample: modify response data of http://httpbin.org/user-agent test: curl 'http://httpbin.org/user-agent' --proxy http://127.0.0.1:8001 @@ -820,7 +820,7 @@ Installing CA in Android could be different based on the system, we list some co * Settings -> Security & Location > Encryption & credentials -> Install from storage, and find your CA file to install * Settings -> Security -> Install from SD card, and find you CA file to install -As we known, there are several file extensions of CA file which may not be recognised by all kinds of Android. The .crt file is the most popular, and a few systems only support .cer file such as OPPO R15. In AnyProxy, you can choose the type of file you need before installing the root CA to your devices. +There are several file extensions of CA file which may not be compatible with all kinds of Android phones. `.crt` file is the most popular, while a few systems could only use .cer file such as OPPO R15. In AnyProxy, you can choose the type of certificate you need before installing. ### config iOS/Android proxy server diff --git a/docs-src/en/src_doc.md b/docs-src/en/src_doc.md index ab017f0..8eba0b5 100644 --- a/docs-src/en/src_doc.md +++ b/docs-src/en/src_doc.md @@ -621,7 +621,7 @@ Installing CA in Android could be different based on the system, we list some co * Settings -> Security & Location > Encryption & credentials -> Install from storage, and find your CA file to install * Settings -> Security -> Install from SD card, and find you CA file to install -As we known, there are several file extensions of CA file which may not be recognised by all kinds of Android. The .crt file is the most popular, and a few systems only support .cer file such as OPPO R15. In AnyProxy, you can choose the type of file you need before installing the root CA to your devices. +There are several file extensions of CA file which may not be compatible with all kinds of Android phones. `.crt` file is the most popular, while a few systems could only use .cer file such as OPPO R15. In AnyProxy, you can choose the type of certificate you need before installing. ### config iOS/Android proxy server diff --git a/docs/cn/index.html b/docs/cn/index.html index 6e618f3..53f8ab5 100644 --- a/docs/cn/index.html +++ b/docs/cn/index.html @@ -1561,6 +1561,7 @@ newResponse.body += '--from anyproxy--' +

不同安卓系统支持安装的证书文件类型不尽相同,大多支持安装拓展名为 .crt 的证书文件,少部分仅支持 .cer 文件(已知如 OPPO R15),AnyProxy 提供了多种类型的证书文件,可在下载安装时选择。

配置iOS/Android系统代理

+

trust root CA in Android

First of all, you need to download the root CA by clicking Root CA in web ui, and then scan the QR code. Installing CA in Android could be different based on the system, we list some common steps as below, but you can find the right way in you system with similar menu path.

@@ -1543,7 +1544,7 @@ Installing CA in Android could be different based on the system, we list some co -

+

There are several file extensions of CA file which may not be compatible with all kinds of Android phones. .crt file is the most popular, while a few systems could only use .cer file such as OPPO R15. In AnyProxy, you can choose the type of certificate you need before installing.

config iOS/Android proxy server