Some checks failed
/ deploy (push) Failing after 8s
- network: add tor relay + snowflake proxy - email: regex alias for admin - search: enable some additional engines
19 lines
502 B
Nix
19 lines
502 B
Nix
{config, ...}: let
|
|
domain = config.customOps.domain.fqdn;
|
|
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;
|
|
};
|
|
}
|