Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m16s
CI/CD Pipeline / Security Scanning (push) Successful in 2m52s
CI/CD Pipeline / Lint and Format (push) Failing after 46s
CI/CD Pipeline / Terraform Validation (push) Failing after 26s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 28s
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 45s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 20s
Validation / validate-genesis (push) Successful in 32s
Validation / validate-terraform (push) Failing after 30s
Validation / validate-kubernetes (push) Failing after 11s
Validation / validate-smart-contracts (push) Failing after 11s
Validation / validate-security (push) Failing after 1m35s
Validation / validate-documentation (push) Failing after 22s
Verify Deployment / Verify Deployment (push) Failing after 1m4s
Move Z Chain, wallet, bot, swap, and Z Bank UI off OMNL domains with dedicated nginx vhost and production DNS config. Co-authored-by: Cursor <cursoragent@cursor.com>
39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
#!/usr/bin/env bash
|
|
# Install nginx vhost for Z Ecosystem (zblockchainsystem.com)
|
|
set -euo pipefail
|
|
|
|
REPO_DIR="${Z_ECOSYSTEM_ROOT:-${OMNL_BANK_ROOT:-$HOME/smom-dbis-138}}"
|
|
VHOST_SRC="$REPO_DIR/deploy/nginx/z-ecosystem-domains.conf"
|
|
VHOST_DST="/etc/nginx/sites-available/z-ecosystem-domains"
|
|
VHOST_LINK="/etc/nginx/sites-enabled/z-ecosystem-domains"
|
|
|
|
log() { echo "[$(date -Iseconds)] $*"; }
|
|
|
|
if [ ! -f "$VHOST_SRC" ]; then
|
|
echo "Missing $VHOST_SRC" >&2
|
|
exit 1
|
|
fi
|
|
|
|
log "Installing Z Ecosystem nginx vhost..."
|
|
sudo cp "$VHOST_SRC" "$VHOST_DST"
|
|
sudo ln -sf "$VHOST_DST" "$VHOST_LINK"
|
|
|
|
log "Testing nginx..."
|
|
sudo nginx -t
|
|
|
|
log "Reloading nginx..."
|
|
sudo systemctl reload nginx
|
|
|
|
check_host() {
|
|
local host="$1"
|
|
local expect="$2"
|
|
local code
|
|
code=$(curl -s -o /dev/null -w '%{http_code}' -H "Host: $host" "http://127.0.0.1/")
|
|
log " $host -> HTTP $code (expect redirect toward $expect)"
|
|
}
|
|
|
|
check_host zblockchainsystem.com /z
|
|
check_host www.zblockchainsystem.com /z
|
|
|
|
log "Z domain deploy complete — https://zblockchainsystem.com/z"
|