diff options
Diffstat (limited to 'host/Rory-nginx/services/email/nginx.nix')
-rw-r--r-- | host/Rory-nginx/services/email/nginx.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/host/Rory-nginx/services/email/nginx.nix b/host/Rory-nginx/services/email/nginx.nix new file mode 100644 index 0000000..a55a65a --- /dev/null +++ b/host/Rory-nginx/services/email/nginx.nix @@ -0,0 +1,21 @@ +{ config, ... }: +{ + services.nginx.virtualHosts = { + "mta-sts.rory.gay" = { + enableACME = true; + forceSSL = true; + locations = { + "/.well-known/mta-sts.txt" = { + # age 604800 + return = '' + 200 'version: STSv1 + mode: enforce + max_age: 120 + mx: mail.rory.gay + ';''; + + }; + }; + }; + }; +} |