25 lines
525 B
Nix
25 lines
525 B
Nix
{ pkgs, config, ... }:
|
|
let
|
|
documentation-package = pkgs.callPackage ../../pkgs/documentation.nix { };
|
|
in
|
|
{
|
|
services = {
|
|
nginx = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
virtualHosts = {
|
|
"docs.${config.deployment-TLMS.domain}" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations = {
|
|
"/" = {
|
|
root = "${documentation-package}/bin/";
|
|
index = "index.html";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|