-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nextcloud: php-fpm and nextcloud-setup services fail when nginx is not enabled #69261
Comments
Thank you for your contributions.
|
Because of this, running nextcloud on nixos is unnecessary difficult. There is No documentation or hint telling one has to enable the nginx server. Why is it not enabled by default? |
@Ma27 after comments earlier today about |
Tbh I'm slightly confused that the @aanderse AFAICS this can be fixed by using a different user/group if @DavHau this is not entirely true though, see https://nixos.org/nixos/manual/index.html#module-services-nextcloud |
Describe the bug
When deploying a nextcloud service, if nginx is not enabled, the unit scripts of php-fpm and nextcloud-setup systemd services fail. This makes it more difficult than necessary to use nextcloud with a different web server.
For both services, the issue is caused by hardcoding the nginx user and/or group in the unit scripts.
For the php-fpm service, we see nginx hardcoded in a few places.
For nextcloud-setup, the failure is related to this line, where the nginx group is hardcoded into this chown command.
The resulting error message:
To Reproduce
Steps to reproduce the behavior:
nextcloud
service, and add thenextcloud-setup
systemd service as described in the NixOS manual, but with thenginx.enable
option set to false.Expected behavior
Not enabling nginx should still allow nextcloud to be deployed, and the user should be able to override the webserver group. It seems to me like there should be an additional option for the name of the webserver's user and group, that would default to nginx, but could changed by the user to something else.
Additional context
Running using nixops on DigitalOcean.
Metadata
Please run
nix run nixpkgs.nix-info -c nix-info -m
and paste the result.The text was updated successfully, but these errors were encountered: