From 9ced8c49ba413276776e3c8e1535d2b3d3f9b598 Mon Sep 17 00:00:00 2001 From: Marius Mutu Date: Sun, 4 Jan 2026 02:49:25 +0200 Subject: [PATCH] chore: Standardize Oracle tunnel port to 1521 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed SSH tunnel local port from 1526 to 1521 to match Oracle's default port, simplifying configuration across environments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- backend/.env.dev.example | 4 ++-- backend/.env.example | 4 ++-- backend/.env.prod.example | 2 +- backend/.env.test.example | 4 ++-- setup_production.sh | 2 +- ssh-tunnel-prod.sh | 2 +- ssh-tunnel-test.sh | 2 +- status.sh | 4 ++-- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/backend/.env.dev.example b/backend/.env.dev.example index 694c840..b6c5700 100644 --- a/backend/.env.dev.example +++ b/backend/.env.dev.example @@ -9,12 +9,12 @@ # ============================================================================ # Connection to CONTAFIN_ORACLE schema for authentication and user management # Each company is a separate schema in Oracle Database -# Development: Through SSH tunnel (localhost:1526) +# Development: Through SSH tunnel (localhost:1521) ORACLE_USER=CONTAFIN_ORACLE ORACLE_PASSWORD=your_oracle_password_here ORACLE_HOST=localhost -ORACLE_PORT=1526 +ORACLE_PORT=1521 ORACLE_SID=ROA # Development: Start SSH tunnel before running backend diff --git a/backend/.env.example b/backend/.env.example index 247381d..213d068 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -21,13 +21,13 @@ # ============================================================================ # Connection to CONTAFIN_ORACLE schema for authentication and user management # Each company is a separate schema in Oracle Database -# Development: Through SSH tunnel (localhost:1526) +# Development: Through SSH tunnel (localhost:1521) # Windows Production: Direct connection to Oracle server ORACLE_USER=CONTAFIN_ORACLE ORACLE_PASSWORD=SET_IN_PRODUCTION_ENV ORACLE_HOST=localhost -ORACLE_PORT=1526 +ORACLE_PORT=1521 ORACLE_SID=ROA # Development Only: Start SSH tunnel before running backend diff --git a/backend/.env.prod.example b/backend/.env.prod.example index 4ba93e5..9a8c1ef 100644 --- a/backend/.env.prod.example +++ b/backend/.env.prod.example @@ -13,7 +13,7 @@ ORACLE_USER=CONTAFIN_ORACLE ORACLE_PASSWORD=CHANGE_IN_PRODUCTION ORACLE_HOST=localhost -ORACLE_PORT=1526 +ORACLE_PORT=1521 ORACLE_SID=ROA # ============================================================================ diff --git a/backend/.env.test.example b/backend/.env.test.example index bba8d66..dab39e5 100644 --- a/backend/.env.test.example +++ b/backend/.env.test.example @@ -9,12 +9,12 @@ # ORACLE DATABASE CONFIGURATION (REQUIRED - Shared by all modules) # ============================================================================ # Connection to CONTAFIN_ORACLE schema for authentication and user management -# TEST: Through SSH tunnel to 10.0.20.121 (localhost:1526) +# TEST: Through SSH tunnel to 10.0.20.121 (localhost:1521) ORACLE_USER=CONTAFIN_ORACLE ORACLE_PASSWORD=your_oracle_password_here ORACLE_HOST=localhost -ORACLE_PORT=1526 +ORACLE_PORT=1521 # ORACLE_SID=roa # Deprecated ORACLE_SERVICE_NAME=ROA diff --git a/setup_production.sh b/setup_production.sh index a86e7ed..f09b55e 100755 --- a/setup_production.sh +++ b/setup_production.sh @@ -85,7 +85,7 @@ NODE_ENV=production ORACLE_USER=CONTAFIN_ORACLE ORACLE_PASSWORD=${ORACLE_PASSWORD} ORACLE_HOST=localhost # Through SSH tunnel -ORACLE_PORT=1526 +ORACLE_PORT=1521 ORACLE_SID=ROA # User Authentication Credentials diff --git a/ssh-tunnel-prod.sh b/ssh-tunnel-prod.sh index b5b8e28..c578747 100755 --- a/ssh-tunnel-prod.sh +++ b/ssh-tunnel-prod.sh @@ -6,7 +6,7 @@ SSH_SERVER="roa.romfast.ro" SSH_PORT="22122" SSH_USER="roa2web" # Replace with Bitvise SSH Server username SSH_KEY="/tmp/roa_oracle_server" -LOCAL_PORT="1526" +LOCAL_PORT="1521" REMOTE_HOST="10.0.20.36" # Oracle server IP on remote network REMOTE_PORT="1521" TUNNEL_PID_FILE="/tmp/roa_ssh_tunnel.pid" diff --git a/ssh-tunnel-test.sh b/ssh-tunnel-test.sh index 3134a88..62dc247 100755 --- a/ssh-tunnel-test.sh +++ b/ssh-tunnel-test.sh @@ -7,7 +7,7 @@ SSH_SERVER="10.0.20.121" SSH_PORT="22" SSH_USER="root" SSH_KEY="$HOME/.ssh/id_rsa" # Use WSL user's SSH key for direct connection -LOCAL_PORT="1526" # Same port as production tunnel for backend compatibility +LOCAL_PORT="1521" # Same port as production tunnel for backend compatibility REMOTE_HOST="localhost" # Oracle runs on localhost inside LXC (Docker container) REMOTE_PORT="1521" TUNNEL_PID_FILE="/tmp/roa_ssh_tunnel_test.pid" diff --git a/status.sh b/status.sh index 7cf0161..59349e8 100755 --- a/status.sh +++ b/status.sh @@ -12,7 +12,7 @@ print_header "ROA2WEB Ultrathin Monolith - Services Status" # SSH Tunnel check echo -e "${BLUE}━━━ Infrastructure ━━━${NC}" -if check_service_status 1526 "SSH Tunnel (Oracle)"; then +if check_service_status 1521 "SSH Tunnel (Oracle)"; then : else print_warning "SSH Tunnel not running - Oracle DB connection will fail" @@ -64,7 +64,7 @@ echo "" # Quick stats print_header "Quick Stats" running_count=0 -for port in 1526 8000 3000; do +for port in 1521 8000 3000; do if netstat -tuln 2>/dev/null | grep -q ":${port} " || ss -tuln 2>/dev/null | grep -q ":${port} "; then running_count=$((running_count + 1)) fi