feat: information leak

This commit is contained in:
Patrick Großmann 2024-01-30 10:50:41 +01:00
parent 99db0c70cc
commit 700889cf0a
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
2 changed files with 18 additions and 9 deletions

View file

@ -1,6 +1,5 @@
# TODO
# autoconfig
# service sending
{
config,
pkgs,
@ -284,17 +283,32 @@ in {
};
services.nginx = {
enable = true;
virtualHosts."mta-sts.pgrossmann.org".extraConfig = ''
virtualHosts."mta-sts.${priv_domain}".extraConfig = ''
encode gzip
file_server
root * ${
pkgs.runCommand "testdir" {} ''
pkgs.runCommand "priv_domain" {} ''
mkdir -p "$out/.well-known"
echo "
version: STSv1
mode: enforce
max_age: 604800
mx: mx1.pgrossmann.org
mx: mx1.${priv_domain}
" > "$out/.well-known/mta-sts.txt"
''
} ;
'';
virtualHosts."mta-sts.${domain}".extraConfig = ''
encode gzip
file_server
root * ${
pkgs.runCommand "domain" {} ''
mkdir -p "$out/.well-known"
echo "
version: STSv1
mode: enforce
max_age: 604800
mx: mx1.${domain}
" > "$out/.well-known/mta-sts.txt"
''
} ;

View file

@ -42,11 +42,6 @@
hostname = "desktopnix.local";
user = "root";
};
"valhalla" = {
hostname = "valhalla.fs.tum.de";
user = "grossmann";
};
"binex" = {
hostname = "praksrv.sec.in.tum.de";
user = "team402";