You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.8 KiB
80 lines
2.8 KiB
{ |
|
"version": 2, |
|
"controller": {}, |
|
"workers": [ |
|
{ |
|
"id": "worker1", |
|
"type": "router", |
|
"realms": [ |
|
{ |
|
"name": "realm1", |
|
"roles": [ |
|
{ |
|
"name": "anonymous", |
|
"permissions": [ |
|
{ |
|
"uri": "", |
|
"match": "prefix", |
|
"allow": { |
|
"call": true, |
|
"register": true, |
|
"publish": true, |
|
"subscribe": true |
|
}, |
|
"disclose": { |
|
"caller": false, |
|
"publisher": false |
|
}, |
|
"cache": true |
|
} |
|
] |
|
} |
|
] |
|
} |
|
], |
|
"transports": [ |
|
{ |
|
"id": "transport1", |
|
"type": "web", |
|
"endpoint": { |
|
"type": "tcp", |
|
"interface": "127.0.0.1", |
|
"port": 8080 |
|
}, |
|
"options": { |
|
"access_log": true |
|
}, |
|
"paths": { |
|
"/": { |
|
"type": "static", |
|
"directory": "@l_prefix@/share/crossbar", |
|
"options": { |
|
"enable_directory_listing": true |
|
} |
|
}, |
|
"ws": { |
|
"type": "websocket" |
|
}, |
|
"lp": { |
|
"type": "longpoll", |
|
"options": { |
|
"session_timeout": 30 |
|
} |
|
}, |
|
"publish": { |
|
"type": "publisher", |
|
"realm": "realm1", |
|
"role": "anonymous", |
|
"options": { |
|
"require_ip": [ |
|
"127.0.0.1/255.0.0.0" |
|
], |
|
"debug": false |
|
} |
|
} |
|
} |
|
} |
|
] |
|
} |
|
] |
|
}
|
|
|