access.db 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. Access control file for EliasDB. This file controls the access rights for each user.
  3. Rights to resources are assigned to groups. Users are assigned to groups.
  4. This file is monitored by the server - any changes to this file are picked up
  5. by the server immediately. Equally, any change on the server side is immediately
  6. written to this file.
  7. The comments in this file are for initial comprehension only. They will be
  8. removed as soon as the users, groups or permissions are modified from the
  9. server side.
  10. */
  11. {
  12. "groups": {
  13. "public": {
  14. // Page access
  15. // ===========
  16. "/": "-R--", // Access to the root page
  17. "/dist/chat.js": "-R--", // Access to the chat application
  18. // Resource access
  19. // ===============
  20. "/css/*": "-R--", // Access to CSS rules
  21. "/js/*": "-R--", // Access to JavaScript files
  22. "/img/*": "-R--", // Access to image files
  23. "/vendor/*": "-R--", // Access to frontend libraries
  24. // REST API access
  25. // ===============
  26. "/db/*": "-R--" // Access to database (read)
  27. },
  28. "admin": {
  29. // REST API access
  30. // ===============
  31. "/db/*": "CRUD" // Access to database
  32. }
  33. },
  34. "users": {
  35. "elias": [ // Default EliasDB admin user
  36. "public",
  37. "admin"
  38. ],
  39. "johndoe" : [ // Default EliasDB public user
  40. "public"
  41. ]
  42. }
  43. }