Allow env variable to override RPC port
This commit is contained in:
parent
b837de83cc
commit
84b39abeb1
1 changed files with 5 additions and 3 deletions
|
@ -6,7 +6,9 @@ DEBUGMODE="${DEBUGMODE:-false}"
|
||||||
RPC_USER="${RPC_USER:-lbry}"
|
RPC_USER="${RPC_USER:-lbry}"
|
||||||
RPC_PASSWORD="${RPC_PASSWORD:-lbry}"
|
RPC_PASSWORD="${RPC_PASSWORD:-lbry}"
|
||||||
RPC_HOST="${RPC_HOST:-localhost}"
|
RPC_HOST="${RPC_HOST:-localhost}"
|
||||||
|
RPC_PORT="${RPC_PORT:-9245}"
|
||||||
MYSQL_SERVER="${MYSQL_SERVER:-localhost}"
|
MYSQL_SERVER="${MYSQL_SERVER:-localhost}"
|
||||||
|
MYSQL_PORT="${MYSQL_PORT:-3306}"
|
||||||
MYSQL_USER="${MYSQL_USER:-lbry}"
|
MYSQL_USER="${MYSQL_USER:-lbry}"
|
||||||
MYSQL_PASSWORD="${MYSQL_PASSWORD:-lbry}"
|
MYSQL_PASSWORD="${MYSQL_PASSWORD:-lbry}"
|
||||||
MYSQL_DATABASE="${MYSQL_DATABASE:-chainquery}"
|
MYSQL_DATABASE="${MYSQL_DATABASE:-chainquery}"
|
||||||
|
@ -23,8 +25,8 @@ fi
|
||||||
|
|
||||||
cat << EOF >> "${CONFIGFILE}"
|
cat << EOF >> "${CONFIGFILE}"
|
||||||
DEBUGMODE="${DEBUGMODE}"
|
DEBUGMODE="${DEBUGMODE}"
|
||||||
LBRYCRDURL="rpc://${RPC_USER}:${RPC_PASSWORD}@${RPC_HOST}:9245"
|
LBRYCRDURL="rpc://${RPC_USER}:${RPC_PASSWORD}@${RPC_HOST}:${RPC_PORT}"
|
||||||
MYSQLDSN="${MYSQL_USER}:${MYSQL_PASSWORD}@tcp(${MYSQL_SERVER}:3306)/$MYSQL_DATABASE"
|
MYSQLDSN="${MYSQL_USER}:${MYSQL_PASSWORD}@tcp(${MYSQL_SERVER}:${MYSQL_PORT})/$MYSQL_DATABASE"
|
||||||
APIMYSQLDSN="${MYSQL_USER}:${MYSQL_PASSWORD}@tcp(${MYSQL_SERVER}:3306)/$MYSQL_DATABASE"
|
APIMYSQLDSN="${MYSQL_USER}:${MYSQL_PASSWORD}@tcp(${MYSQL_SERVER}:${MYSQL_PORT})/$MYSQL_DATABASE"
|
||||||
EOF
|
EOF
|
||||||
exec_chainquery
|
exec_chainquery
|
||||||
|
|
Loading…
Reference in a new issue