aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-11-30 06:29:27 -0300
committerEuAndreh <eu@euandre.org>2022-11-30 06:29:27 -0300
commit2d4155fc3cb279f1bdf697a00b1860be32c79a38 (patch)
tree77413d7a8f0bc947edd73e85c8dc39d53fd3b2bf /src
parentsystem.scm: Disable WIP Cyrus SASL auth in Prosody (diff)
downloadtoph-2d4155fc3cb279f1bdf697a00b1860be32c79a38.tar.gz
toph-2d4155fc3cb279f1bdf697a00b1860be32c79a38.tar.xz
system.scm: Add config for mta-sts subdomain
Diffstat (limited to 'src')
-rw-r--r--src/infrastructure/guix/system.scm24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/infrastructure/guix/system.scm b/src/infrastructure/guix/system.scm
index 0b4f285..709ddd5 100644
--- a/src/infrastructure/guix/system.scm
+++ b/src/infrastructure/guix/system.scm
@@ -1120,6 +1120,7 @@
(define tld "euandre.org")
+(define mta-sts.tld (string-append "mta-sts." tld))
(define whoami "andreh")
(define me "eu")
(define public-me (format #f "~a@~a" me tld))
@@ -1262,6 +1263,27 @@
(server-blocks
(list
(nginx-server-configuration
+ (server-name (list mta-sts.tld))
+ (listen '("[::]:443 ssl http2" "443 ssl http2"))
+ (ssl-certificate (format #f "/etc/letsencrypt/live/~a/fullchain.pem" tld))
+ (ssl-certificate-key (format #f "/etc/letsencrypt/live/~a/privkey.pem" tld))
+ (locations
+ (list
+ (nginx-location-configuration
+ (uri "= /.well-known/mta-sts.txt")
+ (body
+ (list
+ (list "alias "
+ (plain-file
+ "mta-sts.txt"
+ #"-
+ version: STSv1
+ mode: enforce
+ mx: euandre.org
+ max_age: 604800
+ "#)
+ ";")))))))
+ (nginx-server-configuration
(server-name (list tld))
(listen '("[::]:443 ssl http2" "443 ssl http2"))
(root "/srv/www")
@@ -1341,7 +1363,7 @@
(certificates
(list
(certificate-configuration
- (domains (list tld))
+ (domains (list tld mta-sts.tld))
(deploy-hook
(program-file
(string-append tld "-deploy-hook")