adonis/config/http/captiveportal.nix
toufic ar b8664c812e
All checks were successful
/ deploy (push) Successful in 26s
oops xD
2026-01-15 02:15:44 +02:00

19 lines
497 B
Nix

{config, ...}: let
domain = config.customOps.domain;
in {
services.nginx.virtualHosts."cpcheck.${domain}" = {
extraConfig = ''
access_log off;
error_log /dev/null;
add_header Content-Security-Policy "default-src 'none'";
add_header 'Referrer-Policy' 'same-origin';
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
'';
locations."/".return = 204;
forceSSL = false;
addSSL = true;
enableACME = true;
};
}