|
1 | | -# Rsync - Docker mod for openssh-server |
| 1 | +# nextcloud-notify-push - Docker mod for Nextcloud |
2 | 2 |
|
3 | | -This mod adds rsync to openssh-server, to be installed/updated during container start. |
| 3 | +This mod adds a service to start the [notify-push](https://github.com/nextcloud/notify_push) binary. |
4 | 4 |
|
5 | | -In openssh-server docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:openssh-server-rsync` |
| 5 | +## Requirements |
6 | 6 |
|
7 | | -If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:openssh-server-rsync|linuxserver/mods:openssh-server-mod2` |
| 7 | +- Redis configured in your config.php |
8 | 8 |
|
9 | | -# Mod creation instructions |
| 9 | +## Setup |
10 | 10 |
|
11 | | -* Fork the repo, create a new branch based on the branch `template`. |
12 | | -* Edit the `Dockerfile` for the mod. `Dockerfile.complex` is only an example and included for reference; it should be deleted when done. |
13 | | -* Inspect the `root` folder contents. Edit, add and remove as necessary. |
14 | | -* After all init scripts and services are created, run `find ./ -path "./.git" -prune -o \( -name "run" -o -name "finish" -o -name "check" \) -not -perm -u=x,g=x,o=x -print -exec chmod +x {} +` to fix permissions. |
15 | | -* Edit this readme with pertinent info, delete these instructions. |
16 | | -* Finally edit the `.github/workflows/BuildImage.yml`. Customize the vars for `BASEIMAGE` and `MODNAME`. Set the versioning logic and `MULTI_ARCH` if needed. |
17 | | -* Ask the team to create a new branch named `<baseimagename>-<modname>`. Baseimage should be the name of the image the mod will be applied to. The new branch will be based on the `template` branch. |
18 | | -* Submit PR against the branch created by the team. |
| 11 | +1. Add ``DOCKER_MODS=linuxserver/mods:nextcloud-notify-push`` to your env. |
19 | 12 |
|
| 13 | +2. Make sure that Redis is already configured with Nextcloud. |
20 | 14 |
|
21 | | -## Tips and tricks |
| 15 | +3. notify_push should be running and ``**** Starting notify-push ****`` appear in the log. Also check for errors. |
22 | 16 |
|
23 | | -* Some images have helpers built in, these images are currently: |
24 | | - * [Openvscode-server](https://github.com/linuxserver/docker-openvscode-server/pull/10/files) |
25 | | - * [Code-server](https://github.com/linuxserver/docker-code-server/pull/95) |
| 17 | +### Reverse Proxy |
| 18 | + |
| 19 | +The reverse proxy of the `notify_push` service at subfolder `/push` is handled within the Nextcloud container's Nginx site conf. Make sure you are on the latest version. If not sure, make sure your Nextcloud container is up to date, then you can delete the existing site conf at `/config/nginx/site-confs/default.conf` and restart the container. A new conf with the reverse proxy support will be created. |
| 20 | + |
| 21 | +## Validation |
| 22 | + |
| 23 | +1. Read the section about the [Test client](https://github.com/nextcloud/notify_push#test-client). Create an app password and connect to your server |
| 24 | + |
| 25 | + ```sh |
| 26 | + test_client https://cloud.example.com username password |
| 27 | + ``` |
| 28 | + |
| 29 | +2. Run ``occ notify_push:metrics``. Step 1 can be skipped if real clients are already connected. |
| 30 | + |
| 31 | + ```sh |
| 32 | + root@1d0f9bf7fff9:/# occ notify_push:metrics |
| 33 | + Active connection count: 2 |
| 34 | + Active user count: 1 |
| 35 | + Total connection count: 5 |
| 36 | + Total database query count: 1 |
| 37 | + Events received: 13 |
| 38 | + Messages sent: 3 |
| 39 | + ``` |
0 commit comments