diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/guix/system.scm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/guix/system.scm b/src/guix/system.scm index 1bcdfc3..91d39d0 100644 --- a/src/guix/system.scm +++ b/src/guix/system.scm @@ -76,11 +76,20 @@ (server-name (list +tld+)) (listen '("[::]:443 ssl" "443 ssl")) (root "/srv/www") + (index '()) (ssl-certificate (pkg:fmt "/etc/letsencrypt/live/~a/fullchain.pem" +tld+)) (ssl-certificate-key (pkg:fmt "/etc/letsencrypt/live/~a/privkey.pem" +tld+)) (locations (list (nginx-location-configuration + (uri "~ ^(.*)/index\\.html$") + (body + '(#"- + if ($request_uri ~ /index\.html$) { + rewrite ^(.*)/index\.html$ $1/ permanent; + } + "#))) + (nginx-location-configuration (uri "/live/") (body '(#"- |