summaryrefslogtreecommitdiff
path: root/adonis/captiveportal/default.nix
blob: bb540395ba0647cc7181f4c3142356116e60db33 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{config, ...}: let
  domain = config.customOps.domain.fqdn;
in {
  services.nginx.virtualHosts."cpc.${domain}" = {
    extraConfig = ''
      access_log off;
      error_log /dev/null;
    '';
    locations."/".return = 204;
    forceSSL = false;
    addSSL = true;
    enableACME = true;
  };
}