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

24 lines
411 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" = {
root = "${pkgs.phanpy}/lib/node_modules/phanpy/";
## Force HTTP redirect to HTTPS
forceSSL = true;
## LetsEncrypt
enableACME = true;
locations."/" = {
index = "index.html";
};
};
};
};
}