about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPjotr <wrk@bosa.lan>2026-09-27 14:39:53 +0000
committerPjotr Prins <pjotr.public01@thebird.nl>2026-09-30 09:52:27 +0200
commitec979b0bbecdaba26d6ed70b39f18cb0eb3f0986 (patch)
treeb0c140299794a7fd6dfb312c1e9b580cc4ba659b
parentef3bc02d57ad20a97464e7de4105b7f0d0473a8e (diff)
downloadgn-machines-ec979b0bbecdaba26d6ed70b39f18cb0eb3f0986.tar.gz
genenetwork: bnw: serve the generated networks over /bnw-data/
nginx location /bnw-data/ aliases /var/lib/genenet/bnw/ so the
layout pages' 'Save network as SVG' links and the rendered svg files
resolve over HTTP.
-rw-r--r--genenetwork/services/bnw-container.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/genenetwork/services/bnw-container.scm b/genenetwork/services/bnw-container.scm
index a440fb1..360386c 100644
--- a/genenetwork/services/bnw-container.scm
+++ b/genenetwork/services/bnw-container.scm
@@ -157,6 +157,9 @@
       "    server_name _;\n"
       "    root " (file-append package "/sourcecodes") ";\n"
       "    index bn_genenet.php index.html;\n"
+      "    location /bnw-data/ {\n"
+      "      alias /var/lib/genenet/bnw/;\n"
+      "    }\n"
       "    location / {\n"
       "      try_files $uri $uri/ =404;\n"
       "    }\n"