From a29b32f0422aac01409d93e215f5178875571d99 Mon Sep 17 00:00:00 2001 From: zaragoza444 Date: Mon, 29 Jun 2026 00:53:46 -0700 Subject: [PATCH] fix: dashboard API paths for nginx/NPM proxy routing Use short /settlement and /exchange paths in production so nginx maps them to backend /api/v1/* without double-prefix 404s. Align all nginx configs. Co-authored-by: Cursor --- deploy/nginx/omnl-common-locations.conf | 4 +- deploy/nginx/omnl-lxc-portal.conf | 4 +- frontend-dapp/index.html | 4 +- frontend-dapp/src/config/dex.ts | 20 +++++++++- frontend-dapp/src/config/supported-chains.ts | 5 +-- .../features/central-bank/useCentralBank.ts | 23 +++++------ .../src/features/office24/useOffice24.ts | 17 +++----- .../src/features/swap/useDbisSwap.ts | 40 +++++++++---------- 8 files changed, 62 insertions(+), 55 deletions(-) diff --git a/deploy/nginx/omnl-common-locations.conf b/deploy/nginx/omnl-common-locations.conf index 419242b..57cea35 100644 --- a/deploy/nginx/omnl-common-locations.conf +++ b/deploy/nginx/omnl-common-locations.conf @@ -11,7 +11,7 @@ location /api/v1/ { } location /settlement/ { - proxy_pass http://omnl_settlement/; + proxy_pass http://omnl_settlement/api/v1/settlement/; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; @@ -22,7 +22,7 @@ location /settlement/ { } location /exchange/ { - proxy_pass http://omnl_exchange/; + proxy_pass http://omnl_exchange/api/v1/exchange/; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; diff --git a/deploy/nginx/omnl-lxc-portal.conf b/deploy/nginx/omnl-lxc-portal.conf index 22c663e..c7e8b49 100644 --- a/deploy/nginx/omnl-lxc-portal.conf +++ b/deploy/nginx/omnl-lxc-portal.conf @@ -40,14 +40,14 @@ http { } location /settlement/ { - proxy_pass http://omnl_lxc_settlement/; + proxy_pass http://omnl_lxc_settlement/api/v1/settlement/; proxy_http_version 1.1; proxy_set_header Host $host; proxy_read_timeout 120s; } location /exchange/ { - proxy_pass http://omnl_lxc_exchange/; + proxy_pass http://omnl_lxc_exchange/api/v1/exchange/; proxy_http_version 1.1; proxy_set_header Host $host; proxy_read_timeout 120s; diff --git a/frontend-dapp/index.html b/frontend-dapp/index.html index ba1a61c..73345a6 100644 --- a/frontend-dapp/index.html +++ b/frontend-dapp/index.html @@ -4,7 +4,7 @@ - OMNL Mission Control — Chain 138 + OMNL Mission Control - Chain 138