From 85a3755019fc237f6eab9e7e602ffde14f6ebd10 Mon Sep 17 00:00:00 2001 From: Leopere Date: Sun, 4 Nov 2018 22:29:25 -0500 Subject: [PATCH] Quick update --- chainquery/start.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/chainquery/start.sh b/chainquery/start.sh index cb20f80..271f4eb 100755 --- a/chainquery/start.sh +++ b/chainquery/start.sh @@ -1,4 +1,28 @@ #!/usr/bin/env bash +######################### +## Chainquery Settings ## +######################### +RPC_USER=lbryrpc ## Not super necessery to change this. +RPC_PASSWORD=changeme ## Please replace changeme. +RPC_ALLOW_IP=10.5.1.3 ## You're better off not changing this. + +################# +## Mysql Creds ## +################# +MYSQL_SERVER=10.5.1.10 ## You're better off not changing this. +MYSQL_USER=changeme ## This could be changed. +MYSQL_PASSWORD=changeme ## This could be set to something random it sets this string for both Mysql's main user and Chainquery's MysqlDSN. +MYSQL_DATABASE=chainquery ## This can stay the same. +MYSQL_ROOT_PASSWORD=changeme ## Set this to something random and obnoxious we're not using it. + +sed -i '' + + +debugmode=${DEBUGMODE:-false} +lbrycrdurl="rpc://${RPC_USER:-lbryrpc}:${RPC_PASSWORD:-changeme}@10.5.1.2:9245" +mysqldsn="${MYSQL_USER:-changeme}:${MYSQL_PASSWORD:-changeme}@tcp(${MYSQL_SERVER:-10.5.1.10}:3306)/${MYSQL_DATABASE:-chainquery}" +apimysqldsn="${MYSQL_USER:-changeme}:${MYSQL_PASSWORD:-changeme}@tcp(${MYSQL_SERVER:-10.5.1.10}:3306)/${MYSQL_DATABASE:-chainquery}" + ## For now keeping this simple. Potentially eventually add all command args as envvars for the Dockerfile or use safe way to add args via docker-compose.yml chainquery serve -c "/etc/chainquery/"