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

24 lines
386 B
Nix
Raw Normal View History

2024-04-05 23:42:35 +02:00
{
config,
pkgs,
inputs,
lib,
...
}: {
services.nginx = {
enable = true;
virtualHosts = {
"phanpy.gladtherescake.eu" = {
2024-04-06 16:14:34 +02:00
root = "${pkgs.phanpy}";
2024-04-05 23:42:35 +02:00
## Force HTTP redirect to HTTPS
forceSSL = true;
## LetsEncrypt
enableACME = true;
locations."/" = {
index = "index.html";
};
};
};
};
}