-
Notifications
You must be signed in to change notification settings - Fork 13
/
start
executable file
·40 lines (26 loc) · 1014 Bytes
/
start
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
#!/bin/sh
echo "
-------------------- Run $0 (PID: $$) -------------------- $(date)
"
export FILEBOT_NODE_HOST="0.0.0.0" # bind to all interfaces
export FILEBOT_NODE_AUTH="BASIC"
export FILEBOT_NODE_AUTH_USER="$USER" # default username is your username
export FILEBOT_NODE_AUTH_PASS="$USER" # default password is your username -> PLEASE DO CHANGE !!!
export FILEBOT_NODE_HTTP="YES"
export FILEBOT_NODE_HTTP_PORT="5452"
export FILEBOT_NODE_HTTPS="NO"
export FILEBOT_NODE_HTTPS_PORT="5453"
export FILEBOT_NODE_HTTPS_KEY="/path/to/server.key"
export FILEBOT_NODE_HTTPS_CRT="/path/to/server.crt"
export FILEBOT_NODE_DATA="$(dirname $0)/data"
export FILEBOT_TASK_CMD="$(dirname $0)/task"
export FILEBOT_CMD="filebot"
export FILEBOT_CMD_CWD="$PWD"
export FILEBOT_CMD_UID=$(id -u $USER)
export FILEBOT_CMD_GID=$(id -g $USER)
export FILEBOT_NODE_CLIENT="client"
# import user environment
if [ -f "$FILEBOT_NODE_DATA/environment.sh" ]; then
. "$FILEBOT_NODE_DATA/environment.sh"
fi
exec node "server/app.js"