application.yml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # Default repository configuration.
  2. #
  3. # Copy this file or parts of it in a separate location to override these
  4. # settings. Individual items can be selectively overridden as long as the YAML
  5. # hierarchical structure is kept.
  6. # Configuration for binary path and fixity check generation. The hash is a
  7. # checksumn of the contents of the file.
  8. uuid:
  9. # Algorithm used to calculate the hash that generates the content path.
  10. # One of: sha1, sha224, sha256, sha384, or sha512, corresponding to the
  11. # omonymous hashlib function:
  12. # https://docs.python.org/3/library/hashlib.html
  13. algo: sha1
  14. # Data store configuration.
  15. store:
  16. # The semantic store used for persisting LDP-RS (RDF Source) resources.
  17. # MUST support SPARQL 1.1 query and update.
  18. ldp_rs:
  19. # Directory where the RDF data files are stored.
  20. location: data/ldprs_store
  21. # store layout. At the moment, only `rsrc_centric_layout`is supported.
  22. layout: rsrc_centric_layout
  23. # whether to check if the object of a client-provided triple is the uri
  24. # of a repository-managed resource and veify if that exists.
  25. # if set to false, properties are allowed to point to resources in the
  26. # repositoy that do not exist. also, if a resource is deleted, inbound
  27. # relationships may not be cleaned up.
  28. # this can be one of `False` (boolean), `lenient` or `strict`. `False`
  29. # does not check for referential integrity. `lenient` quietly drops a
  30. # user-provided triple if its object violates referential integrity.
  31. # `strict` raises an exception.
  32. #
  33. # Changes to this parameter require a full migration.
  34. referential_integrity: lenient
  35. # this mimics Fedora4 behavior which segments an identifier on POST.
  36. legacy_ptree_split: False
  37. # The path used to persist LDP-NR (bitstreams).
  38. # This is for now a POSIX filesystem. Other solutions such as HDFS may be
  39. # possible in the future.
  40. ldp_nr:
  41. # See store.ldp_rs.layout.
  42. layout: default_layout
  43. # The filesystem path to the root of the binary store.
  44. path: data/ldpnr_store
  45. # How to split the balanced pairtree to generate a path. The hash
  46. # string is defined by the uuid.algo parameter value.
  47. # This parameter defines how many characters are in each branch. 2-4 is
  48. # the recommended setting. NOTE: a value of 2 will generate up to 256
  49. # sub-folders in a folder; 3 will generate max. 4096 and 4 will
  50. # generate max. 65536. Check your filesystem capabilities before
  51. # setting this to a non-default value.
  52. #
  53. # Changes to this parameter require a full migration.
  54. pairtree_branch_length: 2
  55. # Max. number of branches to generate. 0 will split the string until
  56. # it reaches the end.
  57. # E.g. if the hash value is 0123456789abcdef01234565789abcdef and the
  58. # branch length value is 2, and the branch number is 4, the path will
  59. # be 01/23/45/67/89abcdef01234565789abcdef. For a value of 0 it will be
  60. # 01/23/45/67/89/ab/cd/ef/01/23/45/67/89/ab/cd/ef. Be aware that deeply
  61. # nested directory structures may tax some of the operating system's
  62. # services that scan for files, such as `updatedb`. Check your system
  63. # capabilities for maximum nested directories before changing the
  64. # default.
  65. #
  66. # Changes to this parameter require a full migration.
  67. pairtree_branches: 4
  68. # Configuration for messaging.
  69. messaging:
  70. # List of channels to send messages to.
  71. # Each channel must define the `endpoint` and the `level` parameters.
  72. routes:
  73. # Output handler. Currently only `StompHandler` is supported.
  74. - handler: StompHandler
  75. # Whether this route is used. It False, no messages will be emitted
  76. # for this route.
  77. active: True
  78. host: 127.0.0.1
  79. port: 61613
  80. username:
  81. password:
  82. protocol: '12'
  83. destination: '/topic/fcrepo'
  84. # Message format: at the moment the following are supported:
  85. # - `ASResourceFormatter`: Sends information about a resource being
  86. # created, updated or deleted, by who and when, with no further
  87. # information about what changed.
  88. # - `ASDeltaFormatter`: Sends the same information as
  89. # `ASResourceFormatter` with the addition of the triples that were
  90. # added and the ones that were removed in the request. This may be
  91. # used to send rich provenance data to a preservation system.
  92. formatter: ASResourceFormatter