Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions docs/desktop/admin-config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
id: admin-config
title: Admin Configuration
sidebar_position: 12
---

# Admin Configuration

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.
It is a system-level key-value file that persists across updates.

## Location of the Admin Configuration {#location-of-admin-configuration}

:::note
Editing the *admin configuration* may require elevated privileges (i.e. admin or root permissions).
:::

The storage location of the Admin configuration file `config.properties` depends on the OS. The following table shows for each OS the storage path:


| OS | Default Path |
| :------ | :----------------------------------------------------------- |
| Windows | `C:\ProgramData\Cryptomator\config.properties` |
| macOS | `/Library/Application Support/Cryptomator/config.properties` |
| Linux | `/etc/cryptomator/config.properties` |


## Editing the Admin Configuration {#editing-the-admin-configuration}

The admin configuration is a simple, UTF-8 encoded key-value file.
Entries are of the form `property-key=property-value`.

:::info
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`.
:::

**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:

```
cryptomator.pluginDir=@{userhome}/cryptomator/plugins
```

:::warning
After creating/editing the file, ensure correct file access permissions!

We recommend read access for all users, **write access only for system/device admins**.
:::

## Configurable Properties {#configurable-properties}

The following property keys are supported.

| Property Key | Description |
| :------------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `cryptomator.logDir=[DirPath]` | The directory where Cryptomator stores its log files (e.g. application log, migration log). |
| `cryptomator.pluginDir=[DirPath]` | The directory where Cryptomator discovers plugins. |
| `cryptomator.p12Path=[FilePath]` | The path to the device key. |
| `cryptomator.mountPointsDir=[DirPath]` | The directory where Cryptomator mounts vaults if no per-vault location has been set. |
| `cryptomator.disableUpdateCheck=[Boolean]` | Whether to disable automatic update checks (`true`) or allow them (`false`). Defaults to false. |


## Substitutions {#substitutions}

Substitutions are used to dynamically resolve the content of some properties depending on the environment Cryptomator is
started in, e.g. by inserting the path to the user's home folder. They may **only** be used in properties that start
with `cryptomator.` (mind the dot) like `cryptomator.logDir`.
All occurrences of the following substitution keys – in supported properties – are replaced by their respective variable
values:

| Substitution Key | Variable Value |
| :--------------- | :-------------------------------------- |
| `@{appdir}` | The application installation directory. |
| `@{appdata}` | `%APPDATA%` (Windows only). |
| `@{localappdata}`| `%LOCALAPPDATA%` (Windows only). |
| `@{userhome}` | The user's home directory. |

Unknown substitution keys remain unchanged; a key without a value is replaced with an empty string.
Loading