Configurable Options

Note: Since Seafile Server 5.0.0, all config files have been moved to the central conf folder. Read More.

In the file seafevents.conf:

  1. [AUDIT]
  2. ## Audit log is disabled default.
  3. ## Leads to additional SQL tables being filled up, make sure your SQL server is able to handle it.
  4. enabled = true
  5. [STATISTICS]
  6. ## must be "true" to enable statistics
  7. enabled = false
  8. [INDEX FILES]
  9. ## must be "true" to enable search
  10. enabled = true
  11. ## The interval the search index is updated. Can be s(seconds), m(minutes), h(hours), d(days)
  12. interval=10m
  13. ## From Seafile 6.3.0 pro, in order to speed up the full-text search speed, you should setup
  14. highlight = fvh
  15. ## If true, indexes the contents of office/pdf files while updating search index
  16. ## Note: If you change this option from "false" to "true", then you need to clear the search index and update the index again.
  17. ## Refer to file search manual for details.
  18. index_office_pdf=false
  19. ## The default size limit for doc, docx, ppt, pptx, xls, xlsx and pdf files. Files larger than this will not be indexed.
  20. ## Since version 6.2.0
  21. ## Unit: MB
  22. office_file_size_limit = 10
  23. [SEAHUB EMAIL]
  24. ## must be "true" to enable user email notifications when there are new unread notifications
  25. enabled = true
  26. ## interval of sending Seahub email. Can be s(seconds), m(minutes), h(hours), d(days)
  27. interval = 30m
  28. [OFFICE CONVERTER]
  29. ## must be "true" to enable office/pdf online preview
  30. enabled = true
  31. ## how many libreoffice worker processes should run concurrenlty
  32. workers = 1
  33. ## where to store the converted office/pdf files. Deafult is /tmp/.
  34. outputdir = /tmp/
  35. ## how many pages are allowed to be previewed online. Default is 50 pages
  36. max-pages = 50
  37. ## the max size of documents allowed to be previewed online, in MB. Default is 2 MB
  38. ## Previewing a large file (for example >30M) online is likely going to freeze the browser.
  39. max-size = 2
  40. [EVENTS PUBLISH]
  41. ## must be "true" to enable publish events messages
  42. enabled = false
  43. ## message format: repo-update\t{{repo_id}}}\t{{commit_id}}
  44. ## Currently only support redis message queue
  45. mq_type = redis
  46. [REDIS]
  47. ## redis use the 0 database and "repo_update" channel
  48. server = 192.168.1.1
  49. port = 6379
  50. password = q!1w@#123

Options you may want to modify" class="reference-link">Options you may want to modify

The section above listed all the options in seafevents.conf. Most of the time you can use the default settings. But you may want to modify some of them to fit your own use case.

We list them in the following table, as well as why we choose the default value.






























sectionoptiondefault valuedescription
INDEX FILESindex_office_pdffalse
The full text search of office/pdf documents is not enabled by default. This is because it may consume quite some storage for the search index. To turn it on, set this value to “true” and recreate the search index. See File Search Details for details.
OFFICE CONVERTERmax-size2
The max file size allowed to be previewed online is 2MB. The preview is converted for office/pdf files as HTML and display it in the browser. If the file size is too large, the conversion could take too much time and consume many resources.
OFFICE CONVERTERmax-pages50
When previewing an office/pdf document online, the pages displayed are the first 50 pages. If the value is too large, the conversion may take too much time and consume too many resources. Furthermore the browser can crash.