Skip to content

tom31203120/ShadowShorten

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShadowShorten

  • It's an URL shortener.
  • It's a HTTP proxy for chinese users.
  • It uses lua, nginx and redis (openresty)

中文介绍

Demo (Visit it from chinese, otherwise it's just a shorten URL, nothing more)

How it works

When it's going to shorten an URL, it checks if this website is blocked in china (via greatfire.org). If it is, it will provide a proxy to chinese user who visit it.

How to run

  • Install openresty with some extra module: --with-http_spdy_module --with-http_sub_module --with-http_geoip_module
  • Install some extra lua lib (and set correct lua_package_path in your main nginx.conf):
  • Add geoip_country GeoIP.dat; to your main nginx.conf (download it from somewhere)
  • (Optional) Get a wildcard SSL certification for you proxy domain and configure it in your main nginx.conf
  • Link ShadowShorten directory to /etc/nginx/apps/
  • Add include /etc/nginx/apps/ShadowShorten/nginx.conf to your main nginx.conf
  • Copy auth.htpasswd.sample to auth.htpasswd and change the password
  • Change ShadowShorten/nginx.conf as you need (domain names etc.)
  • Run nginx (openresty)

How to use

http --form --auth user:passwd http://blaa.cf/new url="http://baidu.com"(httpie)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 48.3%
  • Nginx 20.4%
  • CSS 17.8%
  • HTML 8.8%
  • JavaScript 4.7%