NixOS-Config/nixos/server/package-configs/cinny/default.nix

24 lines
384 B
Nix
Raw Normal View History

2024-03-31 22:06:47 +02:00
{
config,
pkgs,
inputs,
lib,
...
}: {
2024-03-31 22:06:47 +02:00
services.nginx = {
enable = true;
virtualHosts = {
"cinny.gladtherescake.eu" = {
root = "${pkgs.cinny}";
2024-03-31 22:06:47 +02:00
## Force HTTP redirect to HTTPS
forceSSL = true;
## LetsEncrypt
enableACME = true;
locations."/" = {
index = "index.html";
2024-03-31 22:06:47 +02:00
};
};
};
};
}