diff options
| author | Munyoki Kilyungi | 2026-02-06 12:42:03 +0300 |
|---|---|---|
| committer | Munyoki Kilyungi | 2026-02-07 16:55:54 +0300 |
| commit | 0a2372d61c3b5260432fde54c8edbb7454727c32 (patch) | |
| tree | 92c455a7e6d65fc976d1f25c6427ddc70727e70d | |
| parent | c1f3908832731264478281c12447d6fa1aa282bc (diff) | |
| download | gn-machines-0a2372d61c3b5260432fde54c8edbb7454727c32.tar.gz | |
Expose sparql web-endpoint from container.
| -rw-r--r-- | genenetwork-development.scm | 23 |
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)) |
