Add tor subdomain

This commit is contained in:
Emelie Graven 2021-12-10 08:33:12 +01:00
parent 767d6c9a51
commit 76edda7833
Signed by: emelie
GPG key ID: C11123726DBB55A1

View file

@ -77,6 +77,21 @@
''; '';
}; };
}; };
"tor.graven.dev" = {
forceSSL = true;
useACMEHost = "graven.dev";
locations."/" = {
root = "/var/www/tor";
extraConfig = ''
add_header Access-Control-Allow-Origin "*";
add_header Strict-Transport-Security $hsts_header;
add_header Referrer-Policy "same-origin";
add_header X-Frame-Options "DENY";
add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "1; mode=block";
'';
};
};
"mta-sts.graven.dev" = { "mta-sts.graven.dev" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;