add mta-sts
This commit is contained in:
parent
049fcb73c9
commit
9a1eed241f
1 changed files with 15 additions and 0 deletions
|
|
@ -10,6 +10,21 @@ in
|
|||
];
|
||||
|
||||
services.nginx.virtualHosts = {
|
||||
"mta-sts.${config.networking.domain}" = {
|
||||
quic = true;
|
||||
kTLS = true;
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
extraConfig = ''
|
||||
add_header Strict-Transport-Security max-age=15768000;
|
||||
'';
|
||||
locations."= /.well-known/mta-sts.txt" = {
|
||||
alias = "/srv/http/mta-sts.txt";
|
||||
extraConfig = ''
|
||||
default_type text/plain;
|
||||
'';
|
||||
};
|
||||
};
|
||||
"www.${config.networking.domain}" = {
|
||||
default = true;
|
||||
serverAliases = [ config.networking.domain ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue