Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
293 lines (290 sloc) 13 KB
{
"version": 2,
"workers": [
{
"type": "router",
"realms": [
{
"id": "io.crossbar.demo",
"name": "crossbardemo",
"roles": [
{
"name": "anonymous",
"permissions": [
{
"uri": "io.crossbar.demo.",
"match": "prefix",
"allow": {
"call": true,
"register": true,
"publish": true,
"subscribe": true
},
"disclose": {
"caller": true,
"publisher": true
},
"cache": true
},
{
"uri": "wamp.",
"match": "prefix",
"allow": {
"call": false,
"register": false,
"publish": false,
"subscribe": true
},
"disclose": {
"caller": false,
"publisher": false
},
"cache": true
},
{
"uri": "wamp.subscription.get_events",
"match": "exact",
"allow": {
"call": true,
"register": false,
"publish": false,
"subscribe": false
},
"disclose": {
"caller": false,
"publisher": false
},
"cache": true
}
]
}
],
"store": {
"type": "memory",
"event-history": [
{
"uri": "io.crossbar.demo.wpad.wpad.4126748144.on_wpad"
}
],
"limit": 2000
}
},
{
"id": "io.crossbar.iotcookbook",
"name": "iot_cookbook",
"roles": [
{
"name": "anonymous",
"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": 80
},
"paths": {
"/": {
"type": "redirect",
"url": "https://cbdemo.crossbar.io"
}
}
},
{
"type": "websocket",
"url": "ws://localhost:8080",
"endpoint": {
"type": "tcp",
"port": 8080,
"interface": "127.0.0.1"
}
},
{
"type": "universal",
"endpoint": {
"type": "tcp",
"port": 443,
"tls": {
"key": "server.key",
"certificate": "server.crt",
"chain_certificates": [
"lets-encrypt-x3-cross-signed.pem"
],
"dhparam": "dhparam.pem",
"ciphers": "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256"
}
},
"websocket": {
"ws": {
"type": "websocket",
"url": "wss://demo.crossbar.io",
"serializers": [
"cbor", "msgpack", "json"
],
"options": {
"allowed_origins": [
"https://demo.crossbar.io:*",
"https://cbdemo-eu-central-1.crossbar.io:*",
"https://cbdemo-us-west-1.crossbar.io:*",
"https://cbdemo-ap-southeast-1.crossbar.io:*",
"https://crossbario.com:*",
"https://crossbar.io:*",
"http://localhost:*",
"https://localhost:*",
"file://",
"http://192.168.*.*:*"
],
"allow_null_origin": true,
"enable_webstatus": true,
"max_frame_size": 1048576,
"max_message_size": 1048576,
"auto_fragment_size": 65536,
"fail_by_drop": true,
"open_handshake_timeout": 2500,
"close_handshake_timeout": 1000,
"auto_ping_interval": 10000,
"auto_ping_timeout": 5000,
"auto_ping_size": 4,
"compression": {
"deflate": {
"request_no_context_takeover": false,
"request_max_window_bits": 13,
"no_context_takeover": false,
"max_window_bits": 13,
"memory_level": 5
}
}
}
}
},
"web": {
"paths": {
"/": {
"type": "static",
"directory": "../web"
},
"shared": {
"type": "static",
"directory": "../../../_shared-web-resources"
},
"info": {
"type": "nodeinfo"
},
"starterkit": {
"type": "static",
"directory": "../../../../iotcookbook/device/pi/components"
},
"wpadlab": {
"type": "static",
"directory": "../../../iotcookbook/app/weights/wpadlab/web"
},
"wpadeuro": {
"type": "static",
"directory": "../../../iotcookbook/app/weights/wpadeuro"
},
"beatbox": {
"type": "static",
"directory": "../../beatbox"
},
"chat": {
"type": "static",
"directory": "../../chat"
},
"colorpicker": {
"type": "static",
"directory": "../../colorpicker"
},
"colorama": {
"type": "static",
"directory": "../../colorama"
},
"editform": {
"type": "static",
"directory": "../../editform/web"
},
"gauges": {
"type": "static",
"directory": "../../gauges"
},
"notification": {
"type": "static",
"directory": "../../notification"
},
"pubsub": {
"type": "static",
"directory": "../../pubsub"
},
"sliders": {
"type": "static",
"directory": "../../sliders"
},
"votes": {
"type": "static",
"directory": "../../votes/nodejs/web"
},
"visitors_counter": {
"type": "static",
"directory": "../../visitors_counter"
},
"dashboard": {
"type": "static",
"directory": "../../dashboard/board"
},
"dashboardcontroller": {
"type": "static",
"directory": "../../dashboard/controller"
},
"videocontrol": {
"type": "static",
"directory": "../../videocontrol/web"
},
"spreadsheet": {
"type": "static",
"directory": "../../spread"
},
"dispenser": {
"type": "static",
"directory": "../../../iotcookbook/app/dispenser/frontend"
},
"smart-replenishment": {
"type": "static",
"directory": "../../../../crossbario-projects/smart-replenishment/gastrocool/web",
"options": {
"enable_directory_listing": true,
"mime_types": {
"png": "image/png",
"svg": "image/svg+xml"
}
}
},
"prodisys": {
"type": "static",
"directory": "../../../../project-prodisys/test/web"
}
}
}
}
]
}
]
}