Sha256: 7dfda6b47fd09fab8e0e48c76e35fded823bc9ceb7ebdfdb95721f643e35df55

Contents?: true

Size: 1003 Bytes

Versions: 6

Compression:

Stored size: 1003 Bytes

Contents

# RSocks

an proxy server base on EventMachine.

protocol type support: http, https, socks5

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'r_socks'
```

And then execute:

    $ bundle install

Or install it yourself as:

    $ gem install r_socks

## Usage

#### use ENV set auth username and password

by default both user and password is: `default`

```
export RSOCKS_USER=some_user_name
export RSOCKS_PASSWORD=some_password
```


run server

```ruby
server = RSocks::TcpServer.new
server.config.auth_method = :password
server.config.proxy_buffer_size = 10 * 1024 * 1024
server.config.proxy_type = :http

# if true then you need attach cert and private key
server.config.enable_ssl = false
# server.config.ssl_private_key = './server_key.txt'
# server.config.ssl_cert = './server_cert.txt'

# start multi process
server.config.instances = 2



server.run!
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/nickoan/r_socks.

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
r_socks-0.2.11 README.md
r_socks-0.2.10 README.md
r_socks-0.2.9 README.md
r_socks-0.2.8 README.md
r_socks-0.2.7 README.md
r_socks-0.2.6 README.md