diff options
-rw-r--r-- | takemi.scm | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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 |