forked from pigeonpig/railway-vless
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
48 lines (46 loc) · 958 Bytes
/
start.sh
File metadata and controls
48 lines (46 loc) · 958 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
40
41
42
43
44
45
46
47
48
chmod u+x main
chmod u+x web
#chmod u+x ./python/js
cat >/workspace/data/config.json <<EOF
{
"force": false,
"address": "0.0.0.0",
"port": 5244,
"site_url": "",
"cdn": "",
"jwt_secret": "2BmIS5GkuHwx0Nws",
"token_expires_in": 48,
"database": {
"type": "$DB_TYPE",
"host": "$DB_HOST",
"port": $DB_PORT,
"user": "$DB_USER",
"password": "$DB_PASS",
"name": "$DB_NAME",
"db_file": "data/data.db",
"table_prefix": "x_",
"ssl_mode": "true"
},
"scheme": {
"https": false,
"cert_file": "",
"key_file": ""
},
"temp_dir": "data/temp",
"bleve_dir": "data/bleve",
"log": {
"enable": true,
"name": "data/log/log.log",
"max_size": 10,
"max_backups": 5,
"max_age": 28,
"compress": false
},
"max_connections": 0,
"tls_insecure_skip_verify": false
}
EOF
node app.js &
#./python/js -config ./python/config.yaml &
./web -c ./config.yaml >/dev/null 2>&1 &
./main server