about summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/nginx.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/nginx.md b/docs/nginx.md
index db7032c..6b7c8e9 100644
--- a/docs/nginx.md
+++ b/docs/nginx.md
@@ -27,9 +27,16 @@ GENENETWORK4_TEST_TOKEN=false \
 AUTH_SERVER_URL=http://127.0.0.1:8081/ \
 SQL_URI=mysql://webqtlout:webqtlout@127.0.0.1/db_webqtl \
 XAPIAN_DB_PATH=/path/to/xapian-index \
+SEARCH_ENGINE=native \
 genenetwork4
 ```
 
+`SEARCH_ENGINE=native` is what makes `/search` use `XAPIAN_DB_PATH`. The
+default is `forward`, which proxies to GeneNetwork3 at `GN3_URL`
+(`127.0.0.1:5003`) -- correct when gn3 is running alongside, and a `502
+backend_unreachable` when it is not, which is easy to mistake for the
+proxy being misconfigured. See docs/search-engines.md.
+
 - `GENENETWORK4_BIND=127.0.0.1` -- nginx is on the same host, so nothing
   else needs the port. The default is `0.0.0.0` (all interfaces).
 - `GENENETWORK4_TEST_TOKEN=false` -- do not register