mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-05 15:59:29 +02:00
24 lines
524 B
Nix
24 lines
524 B
Nix
{ pkgs, config, lib, ... }:
|
|
let
|
|
documentation-package = pkgs.callPackage ../../pkgs/documentation.nix { };
|
|
in {
|
|
services = {
|
|
nginx = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
virtualHosts = {
|
|
"docs.${config.dump-dvb.domain}" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations = {
|
|
"/" = {
|
|
root = "${documentation-package}/bin/";
|
|
index = "index.html";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|