summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2023-12-28 11:21:17 -0500
committerDavid Thompson <dthompson2@worcester.edu>2023-12-28 11:21:17 -0500
commit2c12c05638d8cd083507cad64cdabccaf4464b6d (patch)
tree61ea7565397926b872fafef906c4927a564b0704
parent9dbeca1ede4d7d6d48dd026c487bf0e2d8795343 (diff)
takemi: os: Add redirects for old blog /manuals URLs.
-rw-r--r--takemi-os.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/takemi-os.scm b/takemi-os.scm
index 47c0422..5bac09e 100644
--- a/takemi-os.scm
+++ b/takemi-os.scm
@@ -147,6 +147,15 @@
(listen '("443 ssl"))
(server-name '("www.dthompson.us"))
(root "/var/www/blog")
+ ;; I used to check in the HTML output of
+ ;; manuals to my blog's git repo which was
+ ;; super gross. This rewrite rule keeps those
+ ;; links alive.
+ (locations
+ (list
+ (nginx-location-configuration
+ (uri "/manuals")
+ (body '("rewrite ^/manuals/([^/]+)/(.*) https://files.dthompson.us/docs/$1/latest/$2 permanent;")))))
(ssl-certificate letsencrypt-cert)
(ssl-certificate-key letsencrypt-cert-key))
(nginx-server-configuration