mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-05-29 12:30:49 +02:00
Grigory Shipunov
62b9aa6cbd
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
21 lines
518 B
Nix
21 lines
518 B
Nix
{ pkgs, config, ... }: {
|
|
services = {
|
|
nginx = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
virtualHosts = {
|
|
"map.${config.dump-dvb.domain}" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations = {
|
|
"/" = {
|
|
root = if (config.dump-dvb.domain == "dvb.solutions") then "${pkgs.windshield}/bin/" else "${pkgs.windshield-staging}/bin/";
|
|
index = "index.html";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|