./www/nextcloud_notify_push [update notifications for nextcloud clients]
[+] Add this package to your ports tracker

[ CVSweb ] [ Homepage ] [ RSS feed ]

Version: 0.3.0, Package name: notify_push-0.3.0
Maintained by: The OpenBSD ports mailing-list
Master sites:
This nextcloud service attempts to solve the issue where Nextcloud clients have
to periodically check the server if any files have been changed. In order to
keep sync snappy, clients wants to check for updates often, which increases the
load on the server.

With many clients all checking for updates a large portion of the server load
can consist of just these update checks.

By providing a way for the server to send update notifications to the clients,
the need for the clients to make these checks can be greatly reduced.


daemon_flags="--bind /var/www/nextcloud/config/config.php"

. /etc/rc.d/rc.subr


rc_cmd $1

| Running ${PKGSTEM} on OpenBSD


Per https://github.com/nextcloud/notify_push#requirements
${PKGSTEM} requires that nextcloud is configured to use a redis cache. Refer to
nextcloud documentation for this.

Running the service

once the service is enabled and started, the nextcloud virtualhost should be
modified so that /push/ location on the nextcloud virtual host points at the
websocket provided by the service.

examples are provided at https://github.com/nextcloud/notify_push#reverse-proxy
see below for nginx:

location ^~ /push/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

Setting up the service

the notify_push nextcloud app needs to be installed and configured, the occ
commands has the notify_push:setup subcommand for that, per

$doas -u www /var/www/nextcloud/occ notify_push:setup https://nextcloud_fqdn/push
- redis is configured
- push server is receiving redis messages
- push server can load mount info from database
- push server can connect to the Nextcloud server
- push server is a trusted proxy
- push server is running the same version as the app
configuration saved

depending on webserver setup, a common issue is the IP of the server not being
in trusted_proxies in nextcloud config.php, see
https://github.com/nextcloud/notify_push#push-server-is-not-a-trusted-proxy for

adding this to config.php usually solves the issue:

'trusted_proxies' =>
array (
0 => 'server.public.ip'

Filesize: 91.856 KB
Version History (View Complete History)
  • (2022-01-18) Updated to version: notify_push-0.3.0
  • (2021-08-17) Updated to version: notify_push-0.2.2
  • (2021-07-16) Updated to version: notify_push-0.2.1
  • (2021-05-28) Package added to openports.se, version notify_push-0.1.7 (created)
[show/hide] View available PLISTS (Can be a lot of data)

CVS Commit History:

   2021-09-02 11:39:09 by Frederic Cambus | Files touched by this commit (6)
Log message:
Add missing RCS ID markers in crates.inc files for some Rust ports.
   2021-07-16 01:44:15 by Landry Breuil | Files touched by this commit (4)
Log message:
www/nextcloud_notify_push: update to 0.2.1.