-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
nixos/caddy: support user and group options #122647
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! Thanks for the PR. I have highlighted a few issues which should be easy enough to sort out. Let me know if you need a hand. Out of curiosity what value were you thinking to provide for user and group?
|
Thank you for this helpful feedback. I fixed the issues and took the concept from Nginx service here. |
|
@GrahamcOfBorg test caddy |
|
@onny looks good to merge. Can you please squash? |
done :) |
Motivation for this change
Support changing user and group of the caddy web server process. This change was necessary for me to future support of further web servers like caddy in modules like Wordpress or Dokuwiki, see for example this pull request. These concepts to support multiple web servers depend on quering the user and group name of the web server to fix all other file permission things.
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)