Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stve/pow_proxy
A simple rack-based proxy that allows you to run your node apps through Pow.
https://github.com/stve/pow_proxy
Last synced: 3 months ago
JSON representation
A simple rack-based proxy that allows you to run your node apps through Pow.
- Host: GitHub
- URL: https://github.com/stve/pow_proxy
- Owner: stve
- License: mit
- Created: 2011-11-11T20:47:51.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-02-02T03:09:34.000Z (almost 12 years ago)
- Last Synced: 2024-09-18T08:33:13.225Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 110 KB
- Stars: 12
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PowProxy
_Note:_ [Pow 0.4.0](http://pow.cx/manual#section_6) 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](http://pow.cx).
PowProxy is based on a blog post by [Assaf Arkin](/assaf). It's super easy to use. You really should just read [Assaf's blog post](http://labnotes.org/2011/08/09/using-pow-with-your-node-js-project/) to get the full explanation.
## Installation
gem install pow_proxy
## Usage
Create a `config.ru` file in your project's root with the following:
```ruby
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:
```ruby
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](https://github.com/spagalloco/pow_proxy/blob/master/LICENSE.md) for details.