mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-03-11 00:15:16 +00:00
Update README.md
This commit is contained in:
parent
40038a3c08
commit
32d0dd7e2c
12
README.md
12
README.md
|
@ -26,12 +26,12 @@ CLIENT_ENCODING=utf-8
|
|||
|
||||
1.1. (Optional) Install ca.cert
|
||||
```bash
|
||||
$ sudo apt-get install -y ca-certificates
|
||||
$ sudo cp ca.crt /usr/local/share/ca-certificates/php-httpproxy-ca.crt
|
||||
$ sudo update-ca-certificates
|
||||
sudo apt-get install -y ca-certificates
|
||||
sudo cp ca.crt /usr/local/share/ca-certificates/php-httpproxy-ca.crt
|
||||
sudo update-ca-certificates
|
||||
```
|
||||
|
||||
2. Run `python server.py` and set HTTP(S) proxy in your web browser (e.g. Firefox)
|
||||
2. Run `python3 server.py` and set HTTP(S) proxy in your web browser (e.g. Firefox)
|
||||
|
||||
3. Test [100MB](http://speed.hetzner.de/100MB.bin)/[SSL](https://speed.hetzner.de/100MB.bin), [1GB](http://speed.hetzner.de/1GB.bin)/[SSL](https://speed.hetzner.de/1GB.bin), [10GB](http://speed.hetzner.de/10GB.bin)/[SSL](http://speed.hetzner.de/10GB.bin) download and check the speed (e.g. https://speed.hetzner.de/1GB.bin)
|
||||
|
||||
|
@ -39,6 +39,10 @@ $ sudo update-ca-certificates
|
|||
|
||||
4. (Optional) With [Cloudflare](https://cloudflare.com), we can expect to accelerate the 4x speed and reduce the network stuck.
|
||||
|
||||
## (Optional) For Mastodon users
|
||||
1. set `SERVER_URL` variable to `localhost` in settings.ini (e.g. `SERVER_URL=localhost`)
|
||||
2. set `http_proxy` variable to `http://localhost:5555` in env.production (e.g. `http_proxy=http://localhost:5555`)
|
||||
|
||||
## References
|
||||
* https://github.com/anapeksha/python-proxy-server
|
||||
* https://github.com/inaz2/proxy2
|
||||
|
|
Loading…
Reference in New Issue
Block a user