From 0203723f9f0fa8d859a2740176bd93bdd66aaa7e Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Sun, 22 Nov 2026 15:55:23 +0000 Subject: [PATCH] dev2/c0mpute-gateway: route /storage/v1/sealed/ to vienna over the tailnet (c0mpute #451 app uploads); record access_log off Co-Authored-By: Claude Opus 5.5 --- .../nginx-gateway.c0mpute.com.conf | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/dev2/c0mpute-gateway/nginx-gateway.c0mpute.com.conf b/dev2/c0mpute-gateway/nginx-gateway.c0mpute.com.conf index 138d9ee..10a27d1 100644 --- a/dev2/c0mpute-gateway/nginx-gateway.c0mpute.com.conf +++ b/dev2/c0mpute-gateway/nginx-gateway.c0mpute.com.conf @@ -39,7 +39,29 @@ server { proxy_buffering off; proxy_request_buffering off; } + # App uploads into private storage (c0mpute #451): sealed ciphertext and + # c0mpute.com upload tickets go to vienna (node AmaKBdpB, the only gateway + # with [hosting] sealed_ingest_issuer). Over the tailnet, not dev.chovy.com, + # because the ticket is a bearer credential. 16 MiB pieces, streamed. + # 2026-11-22 riotcoder + location ^~ /storage/v1/sealed/ { + client_max_body_size 20m; + proxy_pass http://100.115.66.111:7777; + proxy_http_version 1.1; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto https; + proxy_connect_timeout 10s; + proxy_read_timeout 300s; + proxy_send_timeout 300s; + proxy_buffering off; + proxy_request_buffering off; + } location / { + # The c0mpute gateway writes its own access log (real client IPs) that + # ThreatCrush tails; logging here too counted every request twice. + access_log off; proxy_pass http://127.0.0.1:7777; proxy_http_version 1.1; proxy_set_header Host $host;