To support users having control over their own data, support dynamic construction of the path to their vaults. Currently the path is based on consecutive user ID's generated by Many Notes, starting at 1. What if more options were possible to improve interaction with other selfhosted applications?
Example:
- VAULT_DIR=/var/www/html/storage/app/private/%e/notevaults
%e is replaced with the user's email address.
%u is replaced with the first part of the user's email address, before the @.
%d is replaced with the domain name of the user's email address, after the @.
You can do some neat stuff with this. For example:
- VAULT_DIR=/mnt/data/userprofiles/%d/%u/notevaults
Which could become:
VAULT_DIR=/mnt/data/userprofiles/example.com/alice/notevaults
Alice would find all her vaults at this path.
A more predictable path allows user onboarding systems to better prepare interaction between different applications, without knowing Many Notes user ID numbers. An example would be configuring Nextcloud so users can access their own vaults through its web interface, WebDAV, etc.
This would greatly enhance data portability for those merely using systems hosted by others.
To support users having control over their own data, support dynamic construction of the path to their vaults. Currently the path is based on consecutive user ID's generated by Many Notes, starting at 1. What if more options were possible to improve interaction with other selfhosted applications?
Example:
%eis replaced with the user's email address.%uis replaced with the first part of the user's email address, before the @.%dis replaced with the domain name of the user's email address, after the @.You can do some neat stuff with this. For example:
Which could become:
VAULT_DIR=/mnt/data/userprofiles/example.com/alice/notevaultsAlice would find all her vaults at this path.
A more predictable path allows user onboarding systems to better prepare interaction between different applications, without knowing Many Notes user ID numbers. An example would be configuring Nextcloud so users can access their own vaults through its web interface, WebDAV, etc.
This would greatly enhance data portability for those merely using systems hosted by others.