forked from ElementsProject/cln-application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.sh
executable file
·46 lines (43 loc) · 1.88 KB
/
env.sh
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
SETUP=${1:-local}
export APP_BITCOIN_NETWORK="regtest"
export APP_CORE_LIGHTNING_BITCOIN_NETWORK="$APP_BITCOIN_NETWORK"
if [[ "$APP_BITCOIN_NETWORK" == "mainnet" ]]; then
export APP_CORE_LIGHTNING_BITCOIN_NETWORK="bitcoin"
fi
export APP_CORE_LIGHTNING_PORT=2103
export APP_CORE_LIGHTNING_REST_HIDDEN_SERVICE="http://oqaer4kd7ufryngx6dsztovs4pnlmaouwmtkofjsd2m7pkq7qd.onion"
export APP_MODE="testing"
export APP_PROTOCOL="http"
if [[ "$SETUP" == "docker" ]]; then
export DEVICE_DOMAIN_NAME="docker.local"
export LOCAL_HOST="http://""$DEVICE_DOMAIN_NAME"
export APP_BITCOIN_NODE_IP="170.21.22.2"
export APP_CORE_LIGHTNING_DAEMON_IP="170.21.22.3"
export APP_CORE_LIGHTNING_IP="170.21.22.5"
export APP_CONFIG_DIR="/data/app"
export APP_CORE_LIGHTNING_REST_CERT_DIR="/c-lightning-rest/certs"
export APP_CORE_LIGHTNING_WEBSOCKET_PORT=2106
export APP_BITCOIN_RPC_USER="user"
export APP_BITCOIN_RPC_PASS="password"
export APP_CORE_LIGHTNING_DAEMON_GRPC_PORT=2105
export APP_CORE_LIGHTNING_REST_PORT=2104
export SINGLE_SIGN_ON=true
export CORE_LIGHTNING_PATH="/data/.lightning"
export COMMANDO_CONFIG="/data/.lightning/.commando-env"
echo "Docker Environment Variables Set"
else
export DEVICE_DOMAIN_NAME="local.local"
export LOCAL_HOST="http://""$DEVICE_DOMAIN_NAME"
export APP_BITCOIN_NODE_IP="localhost"
export APP_CORE_LIGHTNING_DAEMON_IP="localhost"
export APP_CORE_LIGHTNING_IP="127.0.0.1"
export APP_CONFIG_DIR="$PWD/data/app"
export APP_CORE_LIGHTNING_REST_CERT_DIR="$PWD/data/c-lightning-rest/certs"
export APP_CORE_LIGHTNING_WEBSOCKET_PORT=5001
export APP_CORE_LIGHTNING_DAEMON_GRPC_PORT=5002
export APP_CORE_LIGHTNING_REST_PORT=3001
export SINGLE_SIGN_ON=false
export CORE_LIGHTNING_PATH="/home/.lightning/l1-regtest"
export COMMANDO_CONFIG="$PWD/.commando"
echo "Local Environment Variables Set"
fi