data.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. # ---------------------------------
  2. # DO NOT EDIT THIS FILE!
  3. # This is reserved for system use!
  4. # ---------------------------------
  5. name: Wiki.js
  6. defaults:
  7. config:
  8. # File defaults
  9. port: 80
  10. db:
  11. host: localhost
  12. port: 5432
  13. user: wikijs
  14. pass: wikijsrocks
  15. db: wiki
  16. ssl: false
  17. sslOptions:
  18. auto: true
  19. schemas:
  20. wiki: wiki
  21. scheduler: scheduler
  22. ssl:
  23. enabled: false
  24. pool:
  25. min: 1
  26. bindIP: 0.0.0.0
  27. logLevel: info
  28. logFormat: default
  29. offline: false
  30. dataPath: ./data
  31. bodyParserLimit: 5mb
  32. scheduler:
  33. workers: 3
  34. pollingCheck: 5
  35. scheduledCheck: 300
  36. maxRetries: 2
  37. retryBackoff: 60
  38. historyExpiration: 90000
  39. # DB defaults
  40. api:
  41. isEnabled: false
  42. mail:
  43. host: ''
  44. secure: true
  45. verifySSL: true
  46. auth:
  47. autoLogin: false
  48. enforce2FA: false
  49. hideLocal: false
  50. loginBgUrl: ''
  51. audience: 'urn:wiki.js'
  52. tokenExpiration: '30m'
  53. tokenRenewal: '14d'
  54. security:
  55. corsMode: 'OFF'
  56. corsConfig: ''
  57. enforceCsp: false
  58. trustProxy: false
  59. enforceHsts: false
  60. disallowFloc: true
  61. hstsDuration: 0
  62. cspDirectives: ''
  63. uploadScanSVG: true
  64. disallowIframe: true
  65. uploadMaxFiles: 20
  66. authJwtAudience: 'urn:wiki.js'
  67. authJwtExpiration: '30m'
  68. uploadMaxFileSize: 10485760
  69. forceAssetDownload: true
  70. disallowOpenRedirect: true
  71. authJwtRenewablePeriod: '14d'
  72. enforceSameOriginReferrerPolicy: true
  73. flags:
  74. ldapdebug: false
  75. sqllog: false
  76. # System defaults
  77. channel: NEXT
  78. cors:
  79. credentials: true
  80. maxAge: 600
  81. methods: 'GET,POST'
  82. origin: true
  83. search:
  84. maxHits: 100
  85. maintainerEmail: security@requarks.io
  86. editors:
  87. code:
  88. contentType: html
  89. markdown:
  90. contentType: markdown
  91. wysiwyg:
  92. contentType: html
  93. groups:
  94. defaultPermissions:
  95. - 'read:pages'
  96. - 'read:assets'
  97. - 'read:comments'
  98. - 'write:comments'
  99. defaultRules:
  100. - name: Default Rule
  101. mode: ALLOW
  102. match: START
  103. roles:
  104. - 'read:pages'
  105. - 'read:assets'
  106. - 'read:comments'
  107. - 'write:comments'
  108. path: ''
  109. locales: []
  110. sites: []
  111. reservedPaths:
  112. - login
  113. - logout
  114. - register
  115. - verify
  116. - favicons
  117. - fonts
  118. - img
  119. - js
  120. - svg
  121. pageExtensions:
  122. - md
  123. - html
  124. - txt
  125. # ---------------------------------