-
Notifications
You must be signed in to change notification settings - Fork 44
Feature: Admin Config #128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.