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

24 lines
571 B
Nix

{ pkgs, config, ... }: {
services.nginx = {
enable = true;
virtualHosts."click.${config.deployment-dvb.domain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
root = "${pkgs.click}/web/";
index = "index.html";
tryFiles = "$uri /index.html";
};
locations."/regions/" = {
alias = "/${pkgs.click}/web/";
};
locations."/stations/" = {
alias = "/${pkgs.click}/web/";
};
locations."/mystations/" = {
alias = "/${pkgs.click}/web/";
};
};
};
}