adonis/config/http/captiveportal.nix
toufic ar 8bfe367ff4
Some checks failed
/ deploy (push) Failing after 21s
harden nginx tryx2
2026-03-04 03:24:06 +02:00

14 lines
300 B
Nix

{config, ...}: let
domain = config.customOps.domain.fqdn;
in {
services.nginx.virtualHosts."cpcheck.${domain}" = {
extraConfig = ''
access_log off;
error_log /dev/null;
'';
locations."/".return = 204;
forceSSL = false;
addSSL = true;
enableACME = true;
};
}