adonis/config/http/captiveportal.nix
toufic ar 1e5a83c5f5
Some checks failed
/ deploy (push) Failing after 12m57s
nginx 'merge' doesn't actually merge :)
2026-01-15 01:40:19 +02:00

19 lines
491 B
Nix

{config, ...}: let
domain = config.customOps.domain;
in {
services.nginx.virtualHosts."cpcheck.${domain}" = {
extraConfig = ''
access_log off;
error_log off;
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;
};
}