application.yml 5.1 KB

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