There are few ways to configure your AFFiNE.
In Admin Panel (<your-affine.domain>/admin/settings
), you will be provided a GUI to a available configuration, and each of them is well documented.
Any configuration modified in Admin Panel will take effect immediately after they got saved. No restart.
Baside the Admin Panel, we also provide a way to import your configuration through command line. In case you lost the access to Admin Panel, but you still have the right to access your host(docke container), this is the approach to be taken.
If you are editing the config JSON file in editor like vscode, which has intergrated JSON lsp, you will have fully commented fields to help to write the config file correctly.
For those who follow the official Docker Compose setup, you can simple put this config file to {CONFIG_LOCATION}/config.json
. Now restart your deployment by docke compose up -d
and the config file will be applied automatically.
Users who deploy in customized way, you might need to ftp or mount this config file to your instance and go forward
ssh
into your host and execute the following command at the directory
Now, restart your instance after importing to let the config file take effect.