From 50d4206431fc2d3ff4a1b588e3e1f7b7aea1d0ad Mon Sep 17 00:00:00 2001 From: Ole Meyer Date: Fri, 30 Jan 2026 17:00:18 +0100 Subject: [PATCH 1/2] Add /chunkers proxy route to nginx config Introduces a new location block for /chunkers, forwarding requests to the backend service at port 8000 with appropriate proxy headers. This enables direct proxying of /chunkers requests through nginx. --- nginx.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nginx.conf b/nginx.conf index 51da61c..157fab3 100644 --- a/nginx.conf +++ b/nginx.conf @@ -84,6 +84,15 @@ server { proxy_set_header X-Forwarded-Proto $scheme; } + location = /chunkers { + proxy_pass http://backend:8000/chunkers; + 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 $scheme; + } + # Proxy API endpoints with paths (e.g., /compare/123, /compare/123/results) location ~ ^/(compare|history)/ { proxy_pass http://backend:8000; From ae2838bcb99688b90f507262a030aa9ae9bc2005 Mon Sep 17 00:00:00 2001 From: Ole Meyer Date: Tue, 3 Feb 2026 11:51:42 +0100 Subject: [PATCH 2/2] Add /chunk and /convert-and-chunk proxy routes Add exact-match nginx location blocks for /chunk and /convert-and-chunk in nginx.conf. --- nginx.conf | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/nginx.conf b/nginx.conf index 157fab3..ef2dbb4 100644 --- a/nginx.conf +++ b/nginx.conf @@ -93,6 +93,32 @@ server { proxy_set_header X-Forwarded-Proto $scheme; } + location = /chunk { + proxy_pass http://backend:8000/chunk; + 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 $scheme; + proxy_read_timeout 600s; + proxy_connect_timeout 60s; + proxy_send_timeout 600s; + proxy_buffering off; + } + + location = /convert-and-chunk { + proxy_pass http://backend:8000/convert-and-chunk; + 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 $scheme; + proxy_read_timeout 600s; + proxy_connect_timeout 60s; + proxy_send_timeout 600s; + proxy_buffering off; + } + # Proxy API endpoints with paths (e.g., /compare/123, /compare/123/results) location ~ ^/(compare|history)/ { proxy_pass http://backend:8000;