cf020031308 / cf020031308.github.io

A collection of my personal knowledge, and tools to manage it.
https://cf020031308.github.io/
53 stars 6 forks source link

Nginx as Proxy #48

Open cf020031308 opened 4 years ago

cf020031308 commented 4 years ago
  1. [x] Manage traffic like cow.
  2. [ ] Ban index page of time-killing sites like zhihu (maybe in a set time period).
  3. [ ] Cache sites/pages that are stored in lynx bookmark.
  4. [ ] Map some URLs to local files.

48: Ban index page of time-killing sites

Check if sock5 is available in Nginx. socks-nginx-module is not built in openresty. starius/lua-resty-socks5 seems feasible. But the final solution goes like this: nginx (equipped with VeryNginx) as proxy -> cow -> ss-local with v2ray, with respect to the latter two layers already exist.

So I don't have to take off cow and transplant its features into nginx.

What's more, in order to read the bookmark of lynx, nginx should be run at my host machine, not in docker.

Suspend

Use docker-compose to make all this into two container: one is nginx and another is sslocal.

Anyway, do it only when necessary.