mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-05-29 12:08:26 +00:00
update readme
This commit is contained in:
parent
68ea78eb12
commit
c5058dc23d
10
README.md
10
README.md
@ -25,9 +25,10 @@ Usage
|
|||||||
|
|
||||||
How to write your own rule file
|
How to write your own rule file
|
||||||
-------------------
|
-------------------
|
||||||
|
* with rule file, you can modify a request at any stage, no matter it's before sending or after servers' responding.
|
||||||
|
* actually ruleFile.js is a module for Nodejs, feel free to include your own modules.
|
||||||
* ``anyproxy --rule /path/to/ruleFile.js``
|
* ``anyproxy --rule /path/to/ruleFile.js``
|
||||||
* actually ruleFile.js is a module for Nodejs
|
* you may learn how it works by our samples: [https://github.com/alipay-ct-wd/anyproxy/tree/master/rule_sample](https://github.com/alipay-ct-wd/anyproxy/tree/master/rule_sample)
|
||||||
* more samples: [https://github.com/alipay-ct-wd/anyproxy/tree/master/rule_sample](https://github.com/alipay-ct-wd/anyproxy/tree/master/rule_sample)
|
|
||||||
* rule file scheme
|
* rule file scheme
|
||||||
```javascript
|
```javascript
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@ -98,7 +99,6 @@ module.exports = {
|
|||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
Using https features
|
Using https features
|
||||||
----------------
|
----------------
|
||||||
### install openssl
|
### install openssl
|
||||||
@ -132,10 +132,6 @@ new proxy.proxyServer("http","8001", "localhost" ,"path/to/rule/file");
|
|||||||
#### clear all the temperary certificates
|
#### clear all the temperary certificates
|
||||||
* ``anyproxy --clear``
|
* ``anyproxy --clear``
|
||||||
|
|
||||||
#### map file to local
|
|
||||||
|
|
||||||
* a sample schema of ruls.js is as follows
|
|
||||||
|
|
||||||
|
|
||||||
## Contact
|
## Contact
|
||||||
* Please feel free to raise any issue about this project, or give us some advice on this doc. :)
|
* Please feel free to raise any issue about this project, or give us some advice on this doc. :)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user