Skip to content

Server Configuration and Customization

Config Files

The config files used in Seafile include:

  • environment variables: contains environment variables, the items here are shared between different components. Newly introduced components, like sdoc-server and notificaiton server, read configuraitons from environment variables and have no config files.
  • seafile.conf: contains settings for seafile daemon and fileserver.
  • seahub_settings.py: contains settings for Seahub
  • seafevents.conf: contains settings for background tasks and file search.

You can also modify most of the config items via web interface.The config items are saved in database table (seahub-db/constance_config). They have a higher priority over the items in config files.

Seafile Config via Web

The design of configure options

There are now three places you can config Seafile server:

  • environment variables
  • config files
  • via web interface

The web interface has the highest priority. It contains a subset of end-user oriented settings. In practise, you can disable settings via web interface for simplicity.

Environment variables contains system level settings that needed when initialize Seafile server or run Seafile server. Environment variables also have three categories:

  • Initialization variables that used to generate config files when Seafile server run for the first time.
  • Variables that shared and used by multiple components of Seafile server.
  • Variables that used both in generate config files and later also needed for some components that have no corresponding config files.

The variables in the first category can be deleted after initialization. In the future, we will make more components to read config from environment variables, so that the third category is no longer needed.