Nginx: Difference between revisions
imported>Fadenb m Syntax highlighting |
imported>Makefu forceSSL implies enableSSL (which is now supposently onlySSL) ... |
||
Line 7: | Line 7: | ||
enable = true; | enable = true; | ||
virtualHosts."blog.example.com" = { | virtualHosts."blog.example.com" = { | ||
enableACME = true; | enableACME = true; | ||
forceSSL = true; | forceSSL = true; |
Revision as of 09:33, 6 September 2017
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";
};
}