mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-27 01:14:21 +02:00
28 lines
669 B
Nix
28 lines
669 B
Nix
{ pkgs, config, ... }: {
|
|
services = {
|
|
nginx = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
virtualHosts = {
|
|
"map.${config.dump-dvb.domain}" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
extraConfig = ''
|
|
autoindex on;
|
|
'';
|
|
|
|
locations = {
|
|
"/" = {
|
|
root = if (config.dump-dvb.domain == "dvb.solutions") then "${pkgs.windshield}/bin/" else "${pkgs.windshield-staging}/bin/";
|
|
index = "index.html";
|
|
};
|
|
"~ \.(json)" = {
|
|
root = "${pkgs.stops}/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|