data.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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: 5
  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. groups:
  87. defaultPermissions:
  88. - 'read:pages'
  89. - 'read:assets'
  90. - 'read:comments'
  91. - 'write:comments'
  92. defaultRules:
  93. - name: Default Rule
  94. mode: ALLOW
  95. match: START
  96. roles:
  97. - 'read:pages'
  98. - 'read:assets'
  99. - 'read:comments'
  100. - 'write:comments'
  101. path: ''
  102. locales: []
  103. sites: []
  104. reservedPaths:
  105. - login
  106. - logout
  107. - register
  108. - verify
  109. - favicons
  110. - fonts
  111. - img
  112. - js
  113. - svg
  114. pageExtensions:
  115. - md
  116. - html
  117. - txt
  118. # ---------------------------------