about summary refs log tree commit diff
diff options
context:
space:
mode:
authorpjotr <pjotr.public01@thebird.nl>2026-12-01 12:59:14 +0000
committerpjotr <pjotr.public01@thebird.nl>2026-12-01 12:59:14 +0000
commit06a85946732da34404a3dee554c5fc6f7ecdaa84 (patch)
treeb864920ab08293a7516173606a09bb18ac4eb703
parent9ad50666b62f011927e085118263554d12fc18a8 (diff)
downloadgenenetwork4-06a85946732da34404a3dee554c5fc6f7ecdaa84.tar.gz
romeral HEAD main
-rw-r--r--README.md2
-rw-r--r--docs/nginx.md24
-rw-r--r--docs/www/operator-checklist.md3
-rw-r--r--etc/nginx.conf (renamed from etc/nginx-vesuvio.pu.ac.ke.conf)16
-rw-r--r--src/lib.rs2
5 files changed, 20 insertions, 27 deletions
diff --git a/README.md b/README.md
index ac8f28f..2f6c008 100644
--- a/README.md
+++ b/README.md
@@ -3011,7 +3011,7 @@ request body: length limit exceeded` before any handler runs.
 Two consequences worth knowing:
 
 - a proxy in front must allow at least as much
-  (`client_max_body_size 64m` in `etc/nginx-vesuvio.pu.ac.ke.conf`), or
+  (`client_max_body_size 64m` in `etc/nginx-*`), or
   it refuses first with a 413 the API never sees;
 - a request does not need to be that large. For covariates, prefer
   `{"case_attribute": "Sex"}` -- the server reads the attribute and
diff --git a/docs/nginx.md b/docs/nginx.md
index 14f93d0..8fbe2a0 100644
--- a/docs/nginx.md
+++ b/docs/nginx.md
@@ -6,10 +6,7 @@ token minted from `scripts/gn-auth-stub.py` (see "Authentication"
 below).
 
 `romeral.systemsgenetics.org` is the authoritative name (it is behind
-Cloudflare); `https://vesuvio.pu.ac.ke/gn4/` still answers, and will until the
-old links have aged out, so both names are in `server_name` and in one
-certificate. Nothing below depends on which of the two is used, except the
-examples, which use the canonical one.
+Cloudflare).
 
 Three things separate this from "just proxy it":
 
@@ -61,7 +58,7 @@ proxy being misconfigured. See docs/search-engines.md.
 server {
     listen 443 ssl;
     http2 on;
-    server_name romeral.systemsgenetics.org vesuvio.pu.ac.ke;
+    server_name romeral.systemsgenetics.org;
 
     ssl_certificate     /etc/nginx/ssl/romeral.systemsgenetics.org.pem;
     ssl_certificate_key /etc/nginx/ssl/romeral.systemsgenetics.org.key;
@@ -128,8 +125,6 @@ server {
 
 ### The access log, and who is using the API
 
-The format in `etc/nginx-vesuvio.pu.ac.ke.conf` records the caller's
-identity, which the API sends back as a response header:
 
 ```nginx
 log_format gn4 '$remote_addr - $remote_user [$time_local] "$request" '
@@ -173,14 +168,13 @@ certbot-managed `server` block for this hostname) and reload; grep the
 error log for `conflicting server name` after any change to the vhost
 set.
 
-For the `romeral.systemsgenetics.org/gn4` deployment as configured,
-[`etc/nginx-vesuvio.pu.ac.ke.conf`](../etc/nginx-vesuvio.pu.ac.ke.conf) is
-the same thing as a complete, drop-in file -- TLS, log format, the `/gn4`
-redirect, and the `/get-test-token` refusal. `/compute/*` (R/qtl, GEMMA)
-is proxied and gated on a valid token, at the cost of letting any token
-holder name server-side paths for R and gemma to read — the operator
-checklist in [`docs/www/operator-checklist.md`](www/operator-checklist.md)
-covers that trade, what the box needs installed, and how to re-block it.
+For the `romeral.systemsgenetics.org/gn4` deployment as configured, and is the
+same thing as a complete, drop-in file -- TLS, log format, the `/gn4` redirect,
+and the `/get-test-token` refusal. `/compute/*` (R/qtl, GEMMA) is proxied and
+gated on a valid token, at the cost of letting any token holder name
+server-side paths for R and gemma to read — the operator checklist in
+[`docs/www/operator-checklist.md`](www/operator-checklist.md) covers that
+trade, what the box needs installed, and how to re-block it.
 
 `http2 on;` needs nginx >= 1.25.1; on older versions use `listen 443
 ssl http2;`. The block above (minus the `ssl_*` lines and the TLS
diff --git a/docs/www/operator-checklist.md b/docs/www/operator-checklist.md
index 400b383..f5408e7 100644
--- a/docs/www/operator-checklist.md
+++ b/docs/www/operator-checklist.md
@@ -6,8 +6,7 @@ runs the deployment: what has to stay off the public surface, how tokens
 are issued without gn-auth, and what is knowingly exposed.
 
 The reference deployment is `https://romeral.systemsgenetics.org/gn4/` proxied by
-nginx to `127.0.0.1:3000` — see [`../nginx.md`](../nginx.md) and
-[`../../etc/nginx-vesuvio.pu.ac.ke.conf`](../../etc/nginx-vesuvio.pu.ac.ke.conf).
+nginx to `127.0.0.1:3000` — see [`../nginx.md`](../nginx.md).
 
 ```
 nginx            443 / 80      public; TLS; /gn4/ -> 127.0.0.1:3000
diff --git a/etc/nginx-vesuvio.pu.ac.ke.conf b/etc/nginx.conf
index eb74500..c13ca80 100644
--- a/etc/nginx-vesuvio.pu.ac.ke.conf
+++ b/etc/nginx.conf
@@ -36,13 +36,13 @@ real_ip_header CF-Connecting-IP;
 # limit_req_zone $binary_remote_addr zone=gn4_per_ip:10m rate=20r/s;
 
 # Two names, one site: romeral.systemsgenetics.org is authoritative (it is
-# behind Cloudflare) and vesuvio.pu.ac.ke is the old name, kept answering until the
+# behind Cloudflare) and vesuvio. is the old name, kept answering until the
 # published links have aged out. One certificate must cover BOTH:
 #
 #   sudo certbot certonly --webroot -w /var/www/html \
-#        -d romeral.systemsgenetics.org -d vesuvio.pu.ac.ke --cert-name vesuvio.pu.ac.ke --expand
+#        -d romeral.systemsgenetics.org -d vesuvio. --cert-name vesuvio. --expand
 #
-# (`--cert-name` stays vesuvio.pu.ac.ke because that is where the live certificate
+# (`--cert-name` stays vesuvio. because that is where the live certificate
 # lives; the name is historical, the subjectAltNames are what matter. Do not
 # use `certbot --nginx`: it inserts its own :443 block for the name it is
 # expanding, and that block shadows this one.)
@@ -55,7 +55,7 @@ real_ip_header CF-Connecting-IP;
 # answered there before the redirect.
 
 # nginx: https://romeral.systemsgenetics.org/gn4/ -> genenetwork4 on 127.0.0.1:3000
-#        (and https://vesuvio.pu.ac.ke/gn4/, the old name, which keeps answering)
+#        (and https://vesuvio./gn4/, the old name, which keeps answering)
 #
 # Drop into /etc/nginx/conf.d/ (included from inside nginx's http block) or
 # paste the server block into /etc/nginx/sites-enabled/. The genenetwork4
@@ -91,7 +91,7 @@ real_ip_header CF-Connecting-IP;
 server {
     listen 80;
     listen [::]:80;
-    server_name romeral.systemsgenetics.org vesuvio.pu.ac.ke;
+    server_name romeral.systemsgenetics.org vesuvio.;
 
     # ${host} preserves the name the visitor used; a hardcoded name sends
     # the canonical name's visitors to the old one and vice versa.
@@ -108,10 +108,10 @@ server {
     listen 443 ssl;
     listen [::]:443 ssl;
     http2 on;                      # nginx >= 1.25.1; else: listen 443 ssl http2;
-    server_name romeral.systemsgenetics.org vesuvio.pu.ac.ke;
+    server_name romeral.systemsgenetics.org vesuvio.;
 
-    ssl_certificate     /etc/letsencrypt/live/vesuvio.pu.ac.ke/fullchain.pem;
-    ssl_certificate_key /etc/letsencrypt/live/vesuvio.pu.ac.ke/privkey.pem;
+    ssl_certificate     /etc/letsencrypt/live/vesuvio/fullchain.pem;
+    ssl_certificate_key /etc/letsencrypt/live/vesuvio/privkey.pem;
     include /etc/letsencrypt/options-ssl-nginx.conf;
     ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
     ssl_session_cache shared:gn4_ssl:10m;
diff --git a/src/lib.rs b/src/lib.rs
index bf1047b..2a2b062 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -344,7 +344,7 @@ pub fn app() -> Router {
         // with axum's own plain-text 413 before any handler sees it, so
         // the limit has to sit above what the API accepts. nginx's
         // client_max_body_size must be at least as large (64m in
-        // etc/nginx-vesuvio.pu.ac.ke.conf), or it refuses first.
+        // etc/nginx.conf), or it refuses first.
         .layer(axum::extract::DefaultBodyLimit::max(BODY_LIMIT_BYTES))
         // Assigns each request an x-request-id (if the client didn't
         // already send one) and copies it onto the response, so it can be