Skip to content
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

Compabilitiy with NC15 (was: NC13) and documentation about mimetype mapping for Keeweb #81

Closed
wants to merge 10 commits into from
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,24 @@ This integrates the two with each other. Just click on a \*.kdbx file in Your Ne

To update to a new version, simply repeat these steps.

## Mimetype detection

Unfortunately, apps can't declare new mimetypes on the fly. To make
Keeweb work properly, you need to add a new mimetype in the
`mimetypemapping.json` file (at Nextcloud level).

To proceed, just copy `/resources/config/mimetypemapping.dist.json` to
`/config/mimetypemapping.json` (in the `config/` folder at Nextcloud’s
root directory; the file should be stored next to the `config.php`
file). Afterwards add the two following line just after the “_comment”
lines.

"kdbx": ["x-application/kdbx"],

After that, run the following command:

sudo -u www-data php occ files:scan --all

## Development setup

```
Expand Down
2 changes: 1 addition & 1 deletion keeweb/appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<repository>https://github.com/jhass/nextcloud-keeweb</repository>
<screenshot>https://cloud.aeshna.de/u/mrzyx/keeweb.gif</screenshot>
<dependencies>
<nextcloud min-version="11" max-version="12" />
<nextcloud min-version="11" max-version="13" />
</dependencies>
<repair-steps>
<install>
Expand Down