Nginx

From NixOS Wiki
Revision as of 09:33, 6 September 2017 by imported>Makefu (forceSSL implies enableSSL (which is now supposently onlySSL) ...)

Sample setups

Static blog with ssl enforced in configuration.nix

services.nginx = {
  enable = true;
  virtualHosts."blog.example.com" = {
    enableACME = true;
    forceSSL = true;
    root = "/var/www/blog";
  };
}