Project

pow_proxy

0.0
No commit activity in last 3 years
No release in over 3 years
A simple rack-based proxy that allows you to run your node apps through Pow.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
 Project Readme

PowProxy

Note: Pow 0.4.0 has built in proxying. You probably don't need this anymore.

Introduction

PowProxy is a simple rack-based proxy that allows you to run your non-ruby apps (like node, etc.) through Pow.

PowProxy is based on a blog post by Assaf Arkin. It's super easy to use. You really should just read Assaf's blog post to get the full explanation.

Installation

gem install pow_proxy

Usage

Create a config.ru file in your project's root with the following:

require 'pow_proxy'
run PowProxy.new

By default, it assumes the host to be localhost and the port to be 3000 however you can configure that to be anything you'd like:

require 'pow_proxy'
run PowProxy.new(:host => '127.0.0.1', :port => 8080)

You can also set the host and port by exporting the POW_PROXY_HOST and POW_PROXY_PORT environment variables in your .powenv.

Make sure your app is running, symlink the app so that Pow knows about it and you'll be all set.

Copyright

Copyright (c) 2012 Steve Agalloco, Assaf Arkin. See LICENSE for details.