diff options
Diffstat (limited to 'src/freetextsearch-service-wamp/workdir/.crossbar/config.json')
-rw-r--r-- | src/freetextsearch-service-wamp/workdir/.crossbar/config.json | 131 |
1 files changed, 131 insertions, 0 deletions
diff --git a/src/freetextsearch-service-wamp/workdir/.crossbar/config.json b/src/freetextsearch-service-wamp/workdir/.crossbar/config.json new file mode 100644 index 0000000..0635149 --- /dev/null +++ b/src/freetextsearch-service-wamp/workdir/.crossbar/config.json @@ -0,0 +1,131 @@ +{ + "version": 2, + "workers": [ + { + "type": "router", + "realms": [ + { + "name": "realm1", + "roles": [ + { + "name": "public", + "permissions": [ + { + "uri": "", + "match": "prefix", + "allow": { + "call": true, + "register": true, + "publish": true, + "subscribe": true + }, + "disclose": { + "caller": false, + "publisher": false + }, + "cache": true + } + ] + }, + { + "name": "user", + "permissions": [ + { + "uri": "", + "match": "prefix", + "allow": { + "call": true, + "register": true, + "publish": true, + "subscribe": true + }, + "disclose": { + "caller": false, + "publisher": false + }, + "cache": true + } + ] + } + ] + } + ], + "transports": [ + { + "type": "web", + "endpoint": { + "type": "tcp", + "port": 8080 + }, + "paths": { + "/": { + "type": "static", + "directory": "../web" + }, + "ws": { + "type": "websocket", + "auth": { + "anonymous": { + "type": "static", + "role": "public" + } + } + }, + "call": { + "type": "caller", + "realm": "realm1", + "role": "public", + "options": { + "debug": true + } + } + } + }, + { + "type": "rawsocket", + "endpoint": { + "type": "tcp", + "port": 8000 + }, + "auth": { + "anonymous": { + "type": "static", + "role": "public" + }, + "wampcra": { + "type": "static", + "users": { + "homer": { + "secret": "secret123", + "role": "user" + } + } + } + } + }, + { + "type": "rawsocket", + "endpoint": { + "type": "unix", + "path": "/tmp/crossbar.sock" + }, + "auth": { + "anonymous": { + "type": "static", + "role": "public" + }, + "wampcra": { + "type": "static", + "users": { + "homer": { + "secret": "secret123", + "role": "user" + } + } + } + } + } + ] + } + ] +} |