Nginx

From NixOS Wiki
Revision as of 13:31, 27 August 2017 by imported>Fadenb (Syntax highlighting)

Sample setups

Static blog with ssl enforced in configuration.nix

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