Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m22s
CI/CD Pipeline / Security Scanning (push) Successful in 2m30s
CI/CD Pipeline / Lint and Format (push) Failing after 44s
CI/CD Pipeline / Terraform Validation (push) Failing after 27s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 31s
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 56s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 29s
Validation / validate-genesis (push) Successful in 34s
Validation / validate-terraform (push) Failing after 39s
Validation / validate-kubernetes (push) Failing after 14s
Validation / validate-smart-contracts (push) Failing after 20s
Validation / validate-security (push) Failing after 1m19s
Validation / validate-documentation (push) Failing after 27s
Verify Deployment / Verify Deployment (push) Failing after 1m13s
Co-authored-by: Cursor <cursoragent@cursor.com>
71 lines
1.7 KiB
Plaintext
71 lines
1.7 KiB
Plaintext
# OMNL Bank online — nginx reverse proxy (Central Bank style production)
|
|
# TLS: mount certs at deploy/nginx/certs/fullchain.pem + privkey.pem
|
|
|
|
upstream omnl_api {
|
|
server token-aggregation:3000;
|
|
}
|
|
|
|
upstream omnl_settlement {
|
|
server settlement-middleware:3011;
|
|
}
|
|
|
|
upstream omnl_exchange {
|
|
server dbis-exchange:3012;
|
|
}
|
|
|
|
upstream omnl_frontend {
|
|
server frontend:80;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name bank.omnl.hybxfinance.io localhost;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
server_name bank.omnl.hybxfinance.io localhost;
|
|
|
|
ssl_certificate /etc/nginx/certs/fullchain.pem;
|
|
ssl_certificate_key /etc/nginx/certs/privkey.pem;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
|
|
add_header X-OMNL-Bank "online" always;
|
|
add_header X-OMNL-Chains "128" always;
|
|
|
|
# Frontend — Central Bank / Office 24 / DBIS Trade
|
|
location / {
|
|
proxy_pass http://omnl_frontend;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
# OMNL API (token-aggregation)
|
|
location /api/v1/ {
|
|
proxy_pass http://omnl_api/api/v1/;
|
|
proxy_set_header Host $host;
|
|
proxy_read_timeout 120s;
|
|
}
|
|
|
|
# Settlement middleware
|
|
location /settlement/ {
|
|
proxy_pass http://omnl_settlement/api/v1/settlement/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Authorization $http_authorization;
|
|
proxy_read_timeout 120s;
|
|
}
|
|
|
|
# DBIS Exchange
|
|
location /exchange/ {
|
|
proxy_pass http://omnl_exchange/api/v1/exchange/;
|
|
proxy_set_header Host $host;
|
|
proxy_read_timeout 120s;
|
|
}
|
|
|
|
location /health {
|
|
return 200 'OMNL Bank online — 128 chains';
|
|
add_header Content-Type text/plain;
|
|
}
|
|
}
|