chore: Standardize Oracle tunnel port to 1521
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
# ============================================================================
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user