nix-config/modules/data-hoarder/map.nix

21 lines
523 B
Nix
Raw Normal View History

2022-05-02 12:38:16 +02:00
{ pkgs, config, lib, ... }: {
services = {
nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
"map.${config.dump-dvb.domain}" = {
forceSSL = true;
2022-05-02 12:38:16 +02:00
enableACME = true;
locations = {
"/" = {
root = if (config.dump-dvb.domain == "dvb.solutions") then "${pkgs.windshield}/bin/" else "${pkgs.windshield-staging}/bin/";
2022-05-02 17:37:41 +02:00
index = "index.html";
2022-05-02 12:38:16 +02:00
};
};
};
};
};
};
}