|
| 1 | +--- |
| 2 | +id: admin-config |
| 3 | +title: Admin Configuration |
| 4 | +sidebar_position: 12 |
| 5 | +--- |
| 6 | + |
| 7 | +# Admin Configuration |
| 8 | + |
| 9 | +The admin configuration allows device or system administrators to define environment properties for Cryptomator so it runs in the desired context for all users on a device. |
| 10 | +It is a system-level key-value file that persists across updates. |
| 11 | + |
| 12 | +## Location of the Admin Configuration {#location-of-admin-configuration} |
| 13 | + |
| 14 | +:::note |
| 15 | +Editing the *admin configuration* may require elevated privileges (i.e. admin or root permissions). |
| 16 | +::: |
| 17 | + |
| 18 | +The storage location of the admin configuration file `config.properties` depends on the OS. The following table shows the storage path for each OS: |
| 19 | + |
| 20 | + |
| 21 | +| OS | Default Path | |
| 22 | +| :------ | :----------------------------------------------------------- | |
| 23 | +| Windows | `C:\ProgramData\Cryptomator\config.properties` | |
| 24 | +| macOS | `/Library/Application Support/Cryptomator/config.properties` | |
| 25 | +| Linux | `/etc/cryptomator/config.properties` | |
| 26 | + |
| 27 | + |
| 28 | +## Editing the Admin Configuration {#editing-the-admin-configuration} |
| 29 | + |
| 30 | +The admin configuration is a simple, UTF-8 encoded key-value file. |
| 31 | +Entries are of the form `property-key=property-value`. |
| 32 | + |
| 33 | +:::info |
| 34 | +Backward slashes `\` in property values must be escaped with another `\`. For example, setting a value of `C:\Logs\Cryptomator` has to be entered as `C:\\Logs\\Cryptomator`. |
| 35 | +::: |
| 36 | + |
| 37 | +**Example:** To allow loading of external plugins, you have to set `cryptomator.pluginDir` to a directory of your choice. If you want to set it to `~/cryptomator/plugins`, the line in the admin file looks like this: |
| 38 | + |
| 39 | +``` |
| 40 | +cryptomator.pluginDir=@{userhome}/cryptomator/plugins |
| 41 | +``` |
| 42 | + |
| 43 | +:::warning |
| 44 | +After creating/editing the file, ensure correct file access permissions! |
| 45 | + |
| 46 | +We recommend read access for all users, **write access only for system/device admins**. |
| 47 | +::: |
| 48 | + |
| 49 | +## Configurable Properties {#configurable-properties} |
| 50 | + |
| 51 | +The following property keys are supported. |
| 52 | + |
| 53 | +| Property Key | Description | |
| 54 | +| :------------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 55 | +| `cryptomator.logDir=[DirPath]` | The directory where Cryptomator stores its log files (e.g. application log, migration log). | |
| 56 | +| `cryptomator.pluginDir=[DirPath]` | The directory where Cryptomator discovers plugins. | |
| 57 | +| `cryptomator.p12Path=[FilePath]` | The path to the device key. | |
| 58 | +| `cryptomator.mountPointsDir=[DirPath]` | The directory where Cryptomator mounts vaults if no per-vault location has been set. | |
| 59 | +| `cryptomator.disableUpdateCheck=[Boolean]` | Whether to disable automatic update checks (`true`) or allow them (`false`). Defaults to false. | |
| 60 | + |
| 61 | + |
| 62 | +## Substitutions {#substitutions} |
| 63 | + |
| 64 | +Substitutions are used to dynamically resolve the content of some properties depending on the environment Cryptomator is |
| 65 | +started in, e.g. by inserting the path to the user's home folder. They may **only** be used in properties that start |
| 66 | +with `cryptomator.` (mind the dot) like `cryptomator.logDir`. |
| 67 | +All occurrences of the following substitution keys – in supported properties – are replaced by their respective variable |
| 68 | +values: |
| 69 | + |
| 70 | +| Substitution Key | Variable Value | |
| 71 | +| :--------------- | :-------------------------------------- | |
| 72 | +| `@{appdir}` | The application installation directory. | |
| 73 | +| `@{appdata}` | `%APPDATA%` (Windows only). | |
| 74 | +| `@{localappdata}`| `%LOCALAPPDATA%` (Windows only). | |
| 75 | +| `@{userhome}` | The user's home directory. | |
| 76 | + |
| 77 | +Unknown substitution keys remain unchanged; a key without a value is replaced with an empty string. |
0 commit comments