HUB
Sign inSign up
isawesome logo

rufus/isawesome

By rufus

•Updated over 8 years ago

nginx http proxy to chucknorrisfacts.com

Image
1

3.1K

rufus/isawesome repository overview

⁠isawesome

What if everything they said about Chuck Norris was about you instead? How awesome would that be? Awesome!

Try pushing this dotCloud example to your own dotCloud service. When you've read how awesome Hipache is, you can switch to your own name. Just add ?AWESOME=(your name) to the URL once, and the service will make you The Norris.

Actually, this is just a ridiculous example of simple Nginx configuration for cookies and proxies. Apologies to www.chucknorrisfacts.com⁠ for abusing their awesomeness.

Depends on nginx sub_filter module, which you must compile-in explicitly. See http://wiki.nginx.org/HttpSubModule#sub_filter⁠ for information about the filter, and the top of that page⁠ for instructions on how to include the module in the configuration. HttpSubModule is not included by default (see list of optional NGinx modules⁠ where it is listed as Substitution.)

⁠Dockerfile

You can now build the isawesome proxy as a container!

docker build -t isawesome .
docker run -name proxy -p 80:8080 -d isawesome
firefox http://127.0.0.1:8080

⁠dotCloud

And, of course you can still push this to the dotCloud platform:

dotcloud create isawesome
dotcloud push
dotcloud open
Tag summary
Recent tags
Content type
Image
Digest
sha256:2ac05b698…
Size
147.4 MB
Last updated
over 8 years ago
docker pull rufus/isawesome:latest