From 32d0dd7e2cb1c72a97bc3981d60812a4148b6e41 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sat, 17 Feb 2024 18:04:50 +0900 Subject: [PATCH] Update README.md --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d7015e7..89cd40a 100644 --- a/README.md +++ b/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