Package Details: nextcloud-uwsgi-service 0.3-1

Git Clone URL: https://aur.archlinux.org/nextcloud-uwsgi-service.git (read-only)
Package Base: nextcloud-uwsgi-service
Description: run nextcloud as a DynamicUser=yes, socket activated uwsgi service
Upstream URL: https://aur.archlinux.org/packages/nextcloud-uwsgi-service/
Licenses: MIT
Submitter: gdamjan
Maintainer: gdamjan
Last Packager: gdamjan
Votes: 0
Popularity: 0.000000
First Submitted: 2018-07-15 14:59
Last Updated: 2018-07-15 18:26

Pinned Comments

gdamjan commented on 2018-07-15 15:16

This package runs Nextcloud as a socket[1] activated DynamicUser[2] service, using uwsgi and its php plugin. All data is stored in /var/lib/private/nextcloud (which will be seen as /var/lib/nextcloud from the application side), and Nextcloud is forbidden to write to any other directory.

Manual steps needed:

systemctl enable --now nextcloud.socket

Edit /etc/nginx/nginx.conf and add:

include /etc/nginx/sites/*.conf;

Configure /etc/nginx/sites/nextcloud.conf to your liking, especially server_name, listen and ssl_* (but don't touch the other stuff)., and reload nginx (systemctl reload nginx).

The first time you open nextcloud it'll complain about the app directories, edit /var/lib/private/nextcloud/config.php and temporarily add:

'appstoreenabled' => false

… then reload the web page, and enter /var/lib/nextcloud/data as a data storage directory. See [3] for how to setup a writable apps directory if you must have it, I'd suggest not to use it, though.

[1] http://0pointer.de/blog/projects/socket-activation.html man systemd.socket

[2] http://0pointer.net/blog/dynamic-users-with-systemd.html man systemd.exec

[3] https://docs.nextcloud.com/server/13/admin_manual/installation/apps_management_installation.html#using-custom-app-directories

Latest Comments

gdamjan commented on 2018-07-15 15:25

TODO:

  • I wish I wouldn't have to edit /etc/nginx/nginx.conf [1]
  • nextcloud should not fail if the apps directory is not writable [2]
  • see if nextcloud can default to /var/lib/nextcloud/data on install

[1] https://bugs.archlinux.org/task/59345 [2] appstoreenabled issue at https://github.com/nextcloud/server/issues/10243

gdamjan commented on 2018-07-15 15:16

This package runs Nextcloud as a socket[1] activated DynamicUser[2] service, using uwsgi and its php plugin. All data is stored in /var/lib/private/nextcloud (which will be seen as /var/lib/nextcloud from the application side), and Nextcloud is forbidden to write to any other directory.

Manual steps needed:

systemctl enable --now nextcloud.socket

Edit /etc/nginx/nginx.conf and add:

include /etc/nginx/sites/*.conf;

Configure /etc/nginx/sites/nextcloud.conf to your liking, especially server_name, listen and ssl_* (but don't touch the other stuff)., and reload nginx (systemctl reload nginx).

The first time you open nextcloud it'll complain about the app directories, edit /var/lib/private/nextcloud/config.php and temporarily add:

'appstoreenabled' => false

… then reload the web page, and enter /var/lib/nextcloud/data as a data storage directory. See [3] for how to setup a writable apps directory if you must have it, I'd suggest not to use it, though.

[1] http://0pointer.de/blog/projects/socket-activation.html man systemd.socket

[2] http://0pointer.net/blog/dynamic-users-with-systemd.html man systemd.exec

[3] https://docs.nextcloud.com/server/13/admin_manual/installation/apps_management_installation.html#using-custom-app-directories