ctucx.git: nixfiles

ctucx' nixfiles

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
{ pkgs, lib, config, ...}:

{

  dns.zones."ctu.cx" =  (pkgs.dns.lib.combinators.host config.networking.primaryIP4 config.networking.primaryIP);

  services.nginx = {
    enable = true;
    virtualHosts."ctu.cx" = {
      enableACME = true;
      forceSSL   = true;
      kTLS       = true;
      root       = pkgs.ctucx-website;
      locations  = {
        "/netzabdeckung.html".return = "307 https://wifionic.de/";
        "/bikemap".return = "307 https://bikemap.ctu.cx/";
      };
    };
  };

}