Skip to content

Feature request: Dynamic vault path per user #62

Description

@Zepmann

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions