Add sample configuration files for php-fpm and nginx
Task Info (Flyspray) | |
---|---|
Opened By | William Vigolo da Silva (williamvds) |
Task ID | 69752 |
Type | Feature Request |
Project | Community Packages |
Category | Packages |
Version | None |
OS | All |
Opened | 2021-02-23 20:29:21 UTC |
Status | Researching |
Assignee | Sergej Pupykin (sergej) |
Assignee | David Runge (dvzrv) |
Details
Users who are setting up Nextcloud with php-fpm and nginx would find it helpful to have some sample config files to work with. The package currently provides a similar sample for Apache in /usr/share/doc/nextcloud/apache.example.conf.
php-fpm needs an additional pool to be configured, which runs as the nextcloud
user, e.g. installed in /etc/php/php-fpm.d/nextcloud.conf.
I've added a sample configuration file to the wiki article at https://wiki.archlinux.org/index.php/Nextcloud#php-fpm.
nginx needs a configuration file that could be installed in /etc/nginx/sites-enabled/nextcloud. The upstream documentation provides a couple of sample nginx files, for hosting Nextcloud either as on the root or as a subdirectory of a website. These could use minor alterations for Arch, e.g. replacing "root /var/www/nextcloud;" with "root /usr/share/webapps/nextcloud;" to match the installation path in the nextcloud package, and the example socket path in php-upstream block replaced with /run/nextcloud/nextcloud.sock (or otherwise matching the sample php-fpm config). One or both of these example nginx configs could be provided in the package so users can apply upstream recommendations with minimal manual editing needed.
Additional info:
- Package version checked: 21.0.0-7