0.0.8 • Published 9 years ago

gebo-proxy-action v0.0.8

Weekly downloads
3
License
-
Repository
github
Last release
9 years ago

gebo-proxy-action

Gebo message-forwarding actions

Install

npm install gebo-proxy-action

Configure

Set the destination gebo, access_token, and action for every friendo behind the proxy in gebo.json. E.g.,

    "directory": {
        "gebo@example.com": {
            "gebo": "https://somegebo.com",
            "resources": {
                "bakeAPie": { "expected": "json", "isAction": true, "read": false, "write": false, "execute": true },
                "save": { "isAction": true, "read": false, "write": true, "execute": false },
                "manifesto": { "expected": "buffer", "read": true, "write": true, "execute": false },
                "cleanTheToilet": { "isAction": true, "read": false, "write": false, "execute": true }
            },
            "access_token": "SomeAccessToken123"
        },
        "anothergebo@example.com": {
            "gebo": "https://localhost:3443",
            "resources": {
                "loveSongs": { "expected": "buffer", "read": true, "write": true, "execute": false },
                "hootLikeAnOwl": { "isAction": true, "read": false, "write": false, "execute": true },
                "cleanTheToilet": { "isAction": true, "read": false, "write": false, "execute": true },
                "getJiggyWithIt": { "isAction": true, "read": true, "write": false, "execute": false }
            },
            "access_token": "SomeOtherAccessToken123"
        }
    }

Enable

var gebo = require('gebo-server')();
var proxy = require('gebo-proxy-action');
gebo.actions.forward = proxy.forward;

License

MIT

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

10 years ago

0.0.0

10 years ago