diff options
author | EuAndreh <eu@euandre.org> | 2025-05-09 16:26:46 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-05-09 18:27:13 -0300 |
commit | 93b2d62313be356d0c27735056621d97c9aab008 (patch) | |
tree | 1d3e9b5a451d211c9a88344daa690bad9460ffbe | |
parent | src/guix/system.scm: Add $PATH to cgit.cgi execution (diff) | |
download | server-93b2d62313be356d0c27735056621d97c9aab008.tar.gz server-93b2d62313be356d0c27735056621d97c9aab008.tar.xz |
src/guix/system.scm: setup CGI catchall nginx configuration
-rw-r--r-- | src/guix/system.scm | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/guix/system.scm b/src/guix/system.scm index 347eef4..67924d8 100644 --- a/src/guix/system.scm +++ b/src/guix/system.scm @@ -4,7 +4,8 @@ ((org euandre queue) #:prefix q:) (gnu)) (use-package-modules - version-control) + version-control + web) (use-service-modules certbot cgit @@ -98,6 +99,26 @@ proxy_pass http://novinho:4219; "#))) (nginx-location-configuration + (uri "/b/") + (body + (list + (list "include " nginx "/share/nginx/conf/fastcgi.conf;") + #"- + fastcgi_param PATH /run/current-system/profile/bin; + fastcgi_pass localhost:9000; + "#))) + (nginx-location-configuration + (uri "/gistatic/") + (body + (list + (list "include " nginx "/share/nginx/conf/fastcgi_params;") + (list "fastcgi_param SCRIPT_FILENAME /srv/www/bin/cgi.sh;") + #"- + fastcgi_param PATH /run/current-system/profile/bin; + fastcgi_pass localhost:9000; + rewrite /gistatic(.*) $1 break; + "#))) + (nginx-location-configuration (uri "/git/static/") (body (list |