24 lines
411 B
Nix
24 lines
411 B
Nix
|
{
|
||
|
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";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|