-
Daniel Heule authored
runas_user is not working on openrc, the correct variable is command_user Signed-off-by:
Daniel Heule <nerve@ipwar.ch>
Daniel Heule authoredrunas_user is not working on openrc, the correct variable is command_user Signed-off-by:
Daniel Heule <nerve@ipwar.ch>
Client Push
Update notifications for nextcloud clients
About
This app 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.
Update notifications are provided on a "best effort" basis, updates might happen without a notification being send and a notification can be send even if no update has actually happened. Clients are advised to still perform periodic checks for updates on their own, although these can be run on a much lower frequency.
Requirements
This app requires a redis server to be setup and for nextcloud to be configured to use the redis server.
Quick setup
The app comes with a setup wizard that should guide you through the setup process for most setups.
- Install the "Client Push" (
notify_push
) app from the appstore - Run
occ notify_push:setup
and follow the provided instructions, If the setup wizard fails you can find manual instructions below.
Manual setup
The setup required consists of three steps
- Install the
notify_push
app from the appstore - Setting up the push server
- Configuring the reverse proxy
- Configuring the nextcloud app
Push server
The push server should be setup to run as a background daemon, the recommended way is by setting it up as a system service in the init system. If you're not using systemd than any init or process management system that runs the push server binary with the described environment variables will work.
systemd
For systemd based setups, can create a systemd service by creating a file named /etc/systemd/system/notify_push.service
with the following
content.
[Unit]
Description = Push daemon for Nextcloud clients
Documentation=https://github.com/nextcloud/notify_push
[Service]
Environment = PORT=7867 # Change if you already have something running on this port
ExecStart = /path/to/push/binary/notify_push /path/to/nextcloud/config/config.php
User=www-data
[Install]
WantedBy = multi-user.target