app.lua 588 B

123456789101112131415161718192021222324
  1. -- Application configuration.
  2. local ROOT = os.getenv("PKA_ROOT") or "./"
  3. return {
  4. md = {
  5. -- Single-valued fields. TODO rely on content model.
  6. single_values = {
  7. ["pas:id"] = true,
  8. ["pas:type"] = true,
  9. ["pas:prefLabel"] = true,
  10. ["path"] = true
  11. },
  12. },
  13. fs = {
  14. -- Base path to write opaque resources.
  15. ores_path = ROOT .. "data/ores/",
  16. -- How many bytes to read when handling files. Adjust to memory
  17. -- availability.
  18. stream_chunk_size = 4 * 1024 ^ 2, -- 4Mb
  19. }
  20. }