-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-env.sh
More file actions
40 lines (32 loc) · 966 Bytes
/
setup-env.sh
File metadata and controls
40 lines (32 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# Setup script to create .env file from .env.example
if [ ! -f .env ]; then
echo "Creating .env file from template..."
cat > .env << 'EOF'
# Oracle Database Configuration
ORACLE_USER=admin
ORACLE_PASS=password
ORACLE_CONN=host:1521/XEPDB1
# NL2SQL Service Configuration
NL2SQL_URL=http://nl2sql-service:8500/query
# Web Server Configuration
PORT=3000
ENABLE_WEB_SERVER=true
# Oracle Connection Pool Configuration
ORACLE_POOL_MIN=2
ORACLE_POOL_MAX=10
ORACLE_POOL_INCREMENT=1
ORACLE_POOL_TIMEOUT=60
ORACLE_QUEUE_TIMEOUT=60000
# Logging Configuration
LOG_LEVEL=info
# MCP API Key Configuration (for /mcp endpoint authentication)
# If not set, allows unauthenticated requests in development mode
MCP_API_KEY=123
# Oracle Database Password (for docker-compose oracle-db service)
ORACLE_DB_PASSWORD=oracle
EOF
echo ".env file created! Please edit it with your actual values."
else
echo ".env file already exists. Skipping creation."
fi