18 lines
351 B
Nix
18 lines
351 B
Nix
{pkgs, ...}: {
|
|
services.nginx = {
|
|
enable = true;
|
|
virtualHosts = {
|
|
"cinny.gladtherescake.eu" = {
|
|
root = "${pkgs.cinny}";
|
|
## Force HTTP redirect to HTTPS
|
|
forceSSL = true;
|
|
## LetsEncrypt
|
|
enableACME = true;
|
|
locations."/" = {
|
|
index = "index.html";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|