- Add `clients_base_url` to define an alternative URL to download clients
- Rename `clients_directory` to `clients_base_directory` to download clients
locally based on the version. If `show_version` is disabled and
`clients_base_directory` are both defined, a redirection to a remote URL with
the "latest" version is chosen in order to avoid to disclose the server
version.
Fixes#43.
Signed-off-by: Julien Riou <julien@riou.xyz>
Use well-defined server errors instead of hardcoded messages that could be
slightly different and spread accross the code base.
Signed-off-by: Julien Riou <julien@riou.xyz>
In order to reduce security risk, the server now returns only functional error
messages to the clients and log low-level error messages.
Fixes#35.
Signed-off-by: Julien Riou <julien@riou.xyz>
Snowflake identifiers are integers, not strings.
BREAKING CHANGE: notes that are not using snowflake identifiers will not be
compatible anymore.
Signed-off-by: Julien Riou <julien@riou.xyz>
- Add `allow_client_encryption_key` option to allow encryption key provided by
the client on the web UI (false by default)
- Add `allow_no_encryption` option to allow notes without encryption (disabled
by default)
Signed-off-by: Julien Riou <julien@riou.xyz>