From d64547681fc133d13829fd105607f8b1bd17c177 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 11 Nov 2022 16:25:55 -0500 Subject: takemi: Add redirect for haunt.dthompson.us. --- takemi.scm | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'takemi.scm') diff --git a/takemi.scm b/takemi.scm index 88e0ce7..8a8c1a8 100644 --- a/takemi.scm +++ b/takemi.scm @@ -105,7 +105,8 @@ (domains '("dthompson.us" "www.dthompson.us" "git.dthompson.us" - "files.dthompson.us")) + "files.dthompson.us" + "haunt.dthompson.us")) ;; Send SIGHUP signal to nginx to trigger a ;; configuration reload, thus loading the ;; updated certificates. @@ -131,6 +132,20 @@ (root "/var/www/files") (raw-content '("autoindex on;")) (ssl-certificate letsencrypt-cert) + (ssl-certificate-key letsencrypt-cert-key)) + ;; I used to have the Haunt website under + ;; its own subdomain, and some sites still + ;; point to it. + (nginx-server-configuration + (listen '("443 ssl")) + (server-name '("haunt.dthompson.us")) + (root "/var/www/haunt") + (locations + (list + (nginx-location-configuration + (uri "/") + (body '("rewrite .* https://dthompson.us/projects/haunt.html permanent;"))))) + (ssl-certificate letsencrypt-cert) (ssl-certificate-key letsencrypt-cert-key)))))) (service fcgiwrap-service-type (fcgiwrap-configuration -- cgit v1.2.3