summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--takemi.scm17
1 files changed, 16 insertions, 1 deletions
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