about summary refs log tree commit diff
path: root/genenetwork-development.scm
diff options
context:
space:
mode:
Diffstat (limited to 'genenetwork-development.scm')
-rw-r--r--genenetwork-development.scm23
1 files changed, 17 insertions, 6 deletions
diff --git a/genenetwork-development.scm b/genenetwork-development.scm
index bfd2fc1..032169d 100644
--- a/genenetwork-development.scm
+++ b/genenetwork-development.scm
@@ -1434,12 +1434,23 @@ gn-guile to display RDF pages."
   (nginx-server-configuration
    (server-name '("rdf.genenetwork.org"))
    (locations
-    (list (nginx-location-configuration
-           (uri "/")
-           (body (list (string-append "proxy_pass http://localhost:"
-                                      (number->string %gn-guile-port)
-                                      ";")
-                       "proxy_set_header Host $host;")))))))
+    (list
+     ;; SPARQL web point
+     (nginx-location-configuration
+      (uri "/sparql")
+      (body (list (list (string-append "proxy_pass http://localhost:"
+				       (number->string %virtuoso-sparql-port)
+				       "/sparql;")
+			"proxy_set_header Host $host;"
+			"proxy_set_header X-Forwarded-For $remote_addr;"
+			"proxy_set_header X-Forwarded-Proto $scheme;"))))
+     ;; Default RDF page served from gn-guile
+     (nginx-location-configuration
+      (uri "/")
+      (body (list (string-append "proxy_pass http://localhost:"
+                                 (number->string %gn-guile-port)
+                                 ";")
+                  "proxy_set_header Host $host;")))))))
 
 (define set-build-directory-permissions-gexp
   (with-imported-modules '((guix build utils))