File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "$schema" : " https://raw.githubusercontent.com/crossbario/crossbar/master/crossbar.json" ,
3+ "version" : 2 ,
4+ "controller" : {
5+ },
6+ "workers" : [
7+ {
8+ "type" : " router" ,
9+ "realms" : [
10+ {
11+ "name" : " realm1" ,
12+ "roles" : [
13+ {
14+ "name" : " anonymous" ,
15+ "permissions" : [
16+ {
17+ "uri" : " " ,
18+ "match" : " prefix" ,
19+ "allow" : {
20+ "call" : true ,
21+ "register" : true ,
22+ "publish" : true ,
23+ "subscribe" : true
24+ },
25+ "disclose" : {
26+ "caller" : false ,
27+ "publisher" : false
28+ },
29+ "cache" : true
30+ }
31+ ]
32+ }
33+ ]
34+ }
35+ ],
36+ "transports" : [
37+ {
38+ "type" : " universal" ,
39+ "endpoint" : {
40+ "type" : " tcp" ,
41+ "port" : 8080
42+ },
43+ "rawsocket" : {
44+ },
45+ "websocket" : {
46+ "ws" : {
47+ "type" : " websocket" ,
48+ "options" : {
49+ "auto_ping_interval" : 60000 ,
50+ "auto_ping_timeout" : 80000
51+ }
52+ }
53+
54+ },
55+ "web" : {
56+ "paths" : {
57+ "/" : {
58+ "type" : " static" ,
59+ "directory" : " ../web" ,
60+ "options" : {
61+ "enable_directory_listing" : true
62+ }
63+ },
64+ "info" : {
65+ "type" : " nodeinfo"
66+ }
67+ }
68+ }
69+ }
70+ ]
71+ }
72+ ]
73+ }
Original file line number Diff line number Diff line change 1+ {
2+ "$schema" : " https://raw.githubusercontent.com/crossbario/crossbar/master/crossbar.json" ,
3+ "version" : 2 ,
4+ "controller" : {
5+ },
6+ "workers" : [
7+ {
8+ "type" : " router" ,
9+ "realms" : [
10+ {
11+ "name" : " realm1" ,
12+ "roles" : [
13+ {
14+ "name" : " anonymous" ,
15+ "permissions" : [
16+ {
17+ "uri" : " " ,
18+ "match" : " prefix" ,
19+ "allow" : {
20+ "call" : true ,
21+ "register" : true ,
22+ "publish" : true ,
23+ "subscribe" : true
24+ },
25+ "disclose" : {
26+ "caller" : false ,
27+ "publisher" : false
28+ },
29+ "cache" : true
30+ }
31+ ]
32+ }
33+ ]
34+ }
35+ ],
36+ "transports" : [
37+ {
38+ "type" : " universal" ,
39+ "endpoint" : {
40+ "type" : " tcp" ,
41+ "port" : 8080
42+ },
43+ "rawsocket" : {
44+ },
45+ "websocket" : {
46+ "ws" : {
47+ "type" : " websocket" ,
48+ "options" : {
49+ "auto_ping_interval" : 60000 ,
50+ "auto_ping_timeout" : 80000
51+ }
52+ }
53+
54+ },
55+ "web" : {
56+ "paths" : {
57+ "/" : {
58+ "type" : " static" ,
59+ "directory" : " ../web" ,
60+ "options" : {
61+ "enable_directory_listing" : true
62+ }
63+ },
64+ "info" : {
65+ "type" : " nodeinfo"
66+ }
67+ }
68+ }
69+ }
70+ ]
71+ }
72+ ]
73+ }
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ services:
3030 container_name : crossbar
3131 hostname : crossbar
3232 network_mode : host
33+ volumes :
34+ - ./crossbar/dev/config.json:/node/.crossbar/config.json
3335 logging :
3436 driver : journald
3537 options :
Original file line number Diff line number Diff line change 5656 container_name: crossbar
5757 hostname: crossbar
5858 network_mode: host
59+ volumes:
60+ - ./crossbar/{config_path}/config.json:/node/.crossbar/config.json
5961 logging:
6062 driver: journald
6163 options:
You can’t perform that action at this time.
0 commit comments