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

18 lines
353 B
Nix
Raw Permalink Normal View History

{pkgs, ...}: {
2024-04-05 23:42:35 +02:00
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";
};
};
};
};
}