Skip to content

Commit 757a883

Browse files
author
Hamza Shahid
committed
fix: set default api key to evo_api_key_secure_2026
1 parent c909448 commit 757a883

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

Docker/scripts/railway_start.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Railway startup script - v4
2+
# Railway startup script - v5
33

44
echo ">>>>> RAILWAY STARTUP SCRIPT RUNNING <<<<<"
55
echo ">>>>> PORT=$PORT <<<<<"
@@ -11,17 +11,22 @@ export DATABASE_URL="$DATABASE_CONNECTION_URI"
1111

1212
echo ">>>>> SERVER_PORT=$SERVER_PORT <<<<<"
1313

14-
# Create .env file
14+
# Create .env file with all required variables
1515
cat > .env << EOF
1616
DATABASE_PROVIDER=${DATABASE_PROVIDER:-postgresql}
1717
DATABASE_CONNECTION_URI=$DATABASE_CONNECTION_URI
1818
SERVER_TYPE=http
1919
SERVER_PORT=$SERVER_PORT
20-
AUTHENTICATION_API_KEY=${AUTHENTICATION_API_KEY:-test}
20+
AUTHENTICATION_API_KEY=${AUTHENTICATION_API_KEY:-evo_api_key_secure_2026}
2121
CACHE_REDIS_ENABLED=false
2222
CACHE_LOCAL_ENABLED=true
2323
CORS_ORIGIN=*
24+
CORS_METHODS=POST,GET,PUT,DELETE
25+
CORS_CREDENTIALS=true
2426
LANGUAGE=en
27+
LOG_LEVEL=ERROR,WARN,INFO,LOG
28+
LOG_COLOR=false
29+
TELEMETRY_ENABLED=false
2530
EOF
2631

2732
echo ">>>>> .env created <<<<<"

railway.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://railway.com/railway.schema.json",
3+
"build": {
4+
"builder": "DOCKERFILE",
5+
"dockerfilePath": "Dockerfile"
6+
},
7+
"deploy": {
8+
"runtime": "V2",
9+
"numReplicas": 1,
10+
"sleepApplication": false,
11+
"restartPolicyType": "ON_FAILURE",
12+
"restartPolicyMaxRetries": 10,
13+
"healthcheckPath": "/",
14+
"healthcheckTimeout": 300,
15+
"startCommand": null
16+
}
17+
}

0 commit comments

Comments
 (0)