Nginx: Difference between revisions

No edit summary
m Documented configuration of nginx modules and where to find the module definitions.
 
Line 287: Line 287:
systemd.services.hedgedoc.serviceConfig.UMask = "0000";
systemd.services.hedgedoc.serviceConfig.UMask = "0000";
</syntaxhighlight>
</syntaxhighlight>
== Modules ==
Nginx can be run with optional modules. You can add them like this:
  services.nginx.package = (pkgs.nginx.override { modules = [
    pkgs.nginxModules.dav
    pkgs.nginxModules.lua
    ...
  ]; });
See [https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/http/nginx/modules.nix#L69 this] for a more comprehensive list of modules available via configuration.
== Let's Encrypt certificates ==
== Let's Encrypt certificates ==