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

18 lines
351 B
Nix
Raw Normal View History

{pkgs, ...}: {
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
};
};
};
};
}