-
Notifications
You must be signed in to change notification settings - Fork 46
Self Hosting
This wiki article describes how you can replace the built-in user handbook of the passwords app with your own user handbook. If you just want to have the official handbook hosted on your server instead of Github, consider the Passwords Handbook app.
A server which can be accessed by your users without authentication and which allows requests from the domain of your Nextcloud server.
Note: Check your CORS setup to make sure the browser won't block requests to the handbook server.
The handbook is part of our wiki, therefore you should clone it if you don't want to write your own handbook from scratch.
Make sure that folders like .git
are not accessible through your webserver.
git clone https://git.mdns.eu/nextcloud/passwords.wiki.git
cd passwords.wiki
The wiki is now cloned to the folder passwords.wiki
.
The data for the user handbook is in the subfolder Users
.
You can use the GitHub import to clone the wiki to your GitHub account.
You need to enter the url https://git.mdns.eu/nextcloud/passwords.wiki.git
and make sure it's public.
Use the following command to point the app to your custom handbook
./occ config:app:set passwords handbook/url --value https://yourdomain.org/path/Users/
With the given example, Passwords will try to load the file https://yourdomain.org/path/Users/Index.md
when the handbook is opened.
If you used the GitHub import, the correct url looks like this: https://raw.githubusercontent.com/<username>/<repository>/master/Users/
.
If you set an invalid handbook url, the default url will be used.
At some locations, the app will include links to a web version of the handbook, e.g. when the app is in a state where the in-app handbook can't be used.
The path structure is the same, but the .md
file ending won't be used.
So instead of linking to /Index.md
, the app would link to /Index
.
Use the following command to point the app to your custom handbook
./occ config:app:set passwords handbook/url/web --value https://yourdomain.org/path/Users/