Nextcloud push notification configuration

After a successful migration to yunohost 12 this morning, I’ve had a look to the web admin.
In the “applications”>“nextcloud” section, I’ve found a parameter I don’t remember I’ve seen it before: “push notification configuration” with a yes/no switch.
My question: if I put the switch on “yes” does it configure automagically “notify push” or would it be necessary to install and configure “notify push” manually before toggling the switch to “yes”?

thanks for your answers

once you activate in ynh web admin then you can verify it is active in nextcloud CLI:

nextcloud@server:~$ php occ app:list
[...]
- notify_push: 0.7.0
[...]

and test install with

nextcloud@server:~$ php occ notify_push:setup https://domain.tld/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

and

nextcloud@server:~$ php occ notify_push:metrics

edit: I suggest restart NC (or even YNH server, for nginx et al.) after notify_push activation.

1 Like

ok, I’ve followed your tips, and here was the result:

sudo -u nextcloud php8.3 --define apc.enable_cli=1 occ notify_push:setup https://domain.tld/cloud/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 not a trusted proxy by Nextcloud or another proxy in the chain.
Nextcloud resolved the following client address for the test request: “ipv6_address_of_my_yunohost” instead of the expected “1.2.3.4” test value.
The following trusted proxies are currently configured: “127.0.0.1”, “::1”
The following x-forwarded-for header was received by Nextcloud: “1.2.3.4”
from the following remote: “ipv6_address_of_my_yunohost”

ipv6_address_of_my_yunohost is not a trusted as a reverse proxy by Nextcloud
See Reverse proxy — Nextcloud latest Administration Manual latest documentation for how to add trusted proxies.

Then I’ve followed the instructions on the nextcloud docs page and edited the config.php file to add the IPV address of my yunohost server and when I re-ran the command, everything was ok.

So, to conclude: the switch doesn’t configure “automagically” the notify push service, but with your help, it works now.

Thanks for your help.
regards

1 Like