commit 872d2b616533853ea446d6a9447e4e6049e6c462 parent 198d93f635bc4f6431ce869303ad336aeb147922 Author: Luke Willis <lukejw@loquat.dev> Date: Wed, 17 Dec 2025 15:39:57 -0500 andrew: Add git page and substitute server proxy to nginx Diffstat:
| M | mt/system/andrew.scm | | | 19 | ++++++++++++++++++- |
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/mt/system/andrew.scm b/mt/system/andrew.scm @@ -1,4 +1,4 @@ -(define-module (orchard system moses) +(define-module (mt system andrew) #:use-module (guix gexp) #:use-module (guix packages) #:use-module (guix git) @@ -86,6 +86,23 @@ Welcome to \"andrew\" the, first MonasTech server. (root "/var/www/monastech.xyz") (ssl-certificate "/etc/dehydrated/certs/monastech.xyz/fullchain.pem") (ssl-certificate-key "/etc/dehydrated/certs/monastech.xyz/privkey.pem")) + (nginx-server-configuration + (server-name '("git.monastech.xyz")) + (listen '("443 ssl")) + (root "/var/www/git.monastech.xyz") + (ssl-certificate "/etc/dehydrated/certs/monastech.xyz/fullchain.pem") + (ssl-certificate-key "/etc/dehydrated/certs/monastech.xyz/privkey.pem")) + ;; Serve substitutes over HTTPS + (nginx-server-configuration + (server-name '("substitutes.monastech.xyz")) + (listen '("443 ssl")) + (ssl-certificate "/etc/dehydrated/certs/monastech.xyz/fullchain.pem") + (ssl-certificate-key "/etc/dehydrated/certs/monastech.xyz/privkey.pem") + (locations + (list ;; Redirect to HTTPS + (nginx-location-configuration + (uri "/") + (body (list "proxy_pass http://127.0.0.1:8080;")))))) ;; Default HTTP server (nginx-server-configuration (server-name '("_"))
