feat: split Z Ecosystem from OMNL/DBIS with separate builds and deploy

Add VITE_ECOSYSTEM build profiles, Z-only nginx vhosts, standalone Z production stack script, and remove Z Chain from OMNL registry.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
2026-07-07 05:17:40 -07:00
co-authored by Cursor
parent eaca1ee6ca
commit a2db92f3cb
27 changed files with 448 additions and 153 deletions
+5
View File
@@ -1,5 +1,10 @@
# Shared OMNL Bank proxy locations (include inside each server block)
# Z Ecosystem routes live on zblockchainsystem.com only
location ~ ^/(z|z-wallet)(/|$) {
return 302 https://zblockchainsystem.com$request_uri;
}
location /api/v1/ {
include /etc/nginx/omnl-portal-auth-current.conf.inc;
proxy_pass http://omnl_api/api/v1/;
@@ -0,0 +1,56 @@
# Z Ecosystem — Z-only nginx locations (no OMNL consoles)
location /api/v1/ {
proxy_pass http://z_ecosystem_api/api/v1/;
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 120s;
}
location /settlement/ {
proxy_pass http://z_ecosystem_settlement/api/v1/settlement/;
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 120s;
}
location /exchange/ {
proxy_pass http://z_ecosystem_exchange/api/v1/exchange/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_read_timeout 120s;
}
# Block OMNL / DBIS-only SPA routes on Z domain
location ~ ^/(hub|office-24|trade|bridge|reserve|history|admin|docs|wallets|omnl)(/|$) {
return 404;
}
location /health {
return 200 'Z Ecosystem online — chain 900002';
add_header Content-Type text/plain;
}
location /assets/ {
proxy_pass http://z_ecosystem_frontend;
proxy_http_version 1.1;
proxy_set_header Host $host;
expires 1y;
add_header Cache-Control "public, immutable";
}
location / {
proxy_pass http://z_ecosystem_frontend;
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;
add_header Cache-Control "no-cache, no-store, must-revalidate" always;
}
+11 -53
View File
@@ -1,6 +1,6 @@
# Z Ecosystem — zblockchainsystem.com (Z Chain, Wallet, Bot, Swap, Z Bank UI)
# Z Ecosystem — zblockchainsystem.com (Z Chain, Wallet, Bot, Swap, Z Bank)
# Deploy: scripts/deployment/deploy-z-domains.sh
# Shares upstreams with OMNL portal on :3000 / :3011 / :3012 / :3002
# Independent from OMNL / DBIS portals
upstream z_ecosystem_frontend {
server 127.0.0.1:3002;
@@ -30,62 +30,20 @@ server {
return 302 /z;
}
location /api/v1/ {
proxy_pass http://z_ecosystem_api/api/v1/;
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 120s;
}
include /etc/nginx/snippets/z-ecosystem-common-locations.conf;
}
location /settlement/ {
proxy_pass http://z_ecosystem_settlement/api/v1/settlement/;
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 120s;
}
server {
listen 80;
listen [::]:80;
server_name rpc.zblockchainsystem.com;
location /exchange/ {
proxy_pass http://z_ecosystem_exchange/api/v1/exchange/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_read_timeout 120s;
}
location /omnl/ {
proxy_pass http://z_ecosystem_api/omnl/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_read_timeout 120s;
}
location /reserve/ {
proxy_pass http://z_ecosystem_api/reserve/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_read_timeout 120s;
}
location /assets/ {
proxy_pass http://z_ecosystem_frontend;
proxy_http_version 1.1;
proxy_set_header Host $host;
expires 1y;
add_header Cache-Control "public, immutable";
}
add_header X-Z-Product "z-chain-rpc" always;
location / {
proxy_pass http://z_ecosystem_frontend;
proxy_pass http://127.0.0.1:8546;
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;
add_header Cache-Control "no-cache, no-store, must-revalidate" always;
proxy_read_timeout 120s;
}
}