From 919559c32eb32ac60d39a922295f1b5662f0b6a1 Mon Sep 17 00:00:00 2001 From: Cipher Vance Date: Sat, 22 Nov 2025 22:27:54 -0600 Subject: [PATCH] attempt to fix api/api calls --- docker/nginx.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/nginx.conf b/docker/nginx.conf index 1c15ee1..b79ebe5 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -25,8 +25,11 @@ server { add_header Cache-Control "no-cache, no-store, must-revalidate"; } - # API proxy + # API proxy - strip /api prefix and send to backend location /api/ { + # Remove /api prefix when proxying + rewrite ^/api/(.*)$ /$1 break; + proxy_pass https://dev-api.rideaware.org; proxy_http_version 1.1; proxy_set_header Host dev-api.rideaware.org; @@ -50,6 +53,7 @@ server { return 204; } } + # SPA - route all requests to index.html location / {