summaryrefslogtreecommitdiff
path: root/takemi-os.scm
diff options
context:
space:
mode:
Diffstat (limited to 'takemi-os.scm')
-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