Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. {
  2. "version": 2,
  3. "workers": [
  4. {
  5. "type": "router",
  6. "realms": [
  7. {
  8. "name": "ssp-game",
  9. "roles": [
  10. {
  11. "name": "public",
  12. "permissions": [
  13. {
  14. "uri": "",
  15. "match": "prefix",
  16. "allow": {
  17. "call": true,
  18. "register": true,
  19. "publish": true,
  20. "subscribe": true
  21. },
  22. "disclose": {
  23. "caller": false,
  24. "publisher": false
  25. },
  26. "cache": true
  27. }
  28. ]
  29. },
  30. {
  31. "name": "user",
  32. "permissions": [
  33. {
  34. "uri": "",
  35. "match": "prefix",
  36. "allow": {
  37. "call": true,
  38. "register": true,
  39. "publish": true,
  40. "subscribe": true
  41. },
  42. "disclose": {
  43. "caller": false,
  44. "publisher": false
  45. },
  46. "cache": true
  47. }
  48. ]
  49. }
  50. ]
  51. }
  52. ],
  53. "transports": [
  54. {
  55. "type": "web",
  56. "endpoint": {
  57. "type": "tcp",
  58. "port": 8080
  59. },
  60. "paths": {
  61. "/": {
  62. "type": "static",
  63. "directory": "../web"
  64. },
  65. "ws": {
  66. "type": "websocket",
  67. "auth": {
  68. "anonymous": {
  69. "type": "static",
  70. "role": "public"
  71. }
  72. }
  73. },
  74. "apidocs": {
  75. "type": "schemadoc",
  76. "realm": "ssp-game"
  77. }
  78. }
  79. }
  80. ]
  81. }
  82. ]
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement