2021-12-08 07:56:58 +01:00
|
|
|
|
|
|
|
GREEN='\033[0;32m'
|
|
|
|
RED='\033[1;31m'
|
|
|
|
NC='\033[0m' # No Color
|
|
|
|
|
|
|
|
# Check if kratos port is open
|
|
|
|
if nc -z localhost 8000;
|
|
|
|
then
|
|
|
|
echo -e "${GREEN}Great! It looks like the Kratos Admin port is available${NC}"
|
|
|
|
else
|
|
|
|
echo -e "${RED}**********************************************************${NC}"
|
|
|
|
echo -e "${RED}WARNING! It looks like the Kratos Admin port NOT available${NC}"
|
|
|
|
echo -e "${RED}please run in a seperate terminal: ${NC}"
|
|
|
|
echo -e "${RED}./set-ssh-tunnel.sh init.stackspin.net ${NC}"
|
|
|
|
echo -e "${RED} ${NC}"
|
|
|
|
echo -e "${RED}We will continue to start the app after 5 seconds. ${NC}"
|
|
|
|
echo -e "${RED}**********************************************************${NC}"
|
|
|
|
sleep 5
|
|
|
|
fi
|
|
|
|
|
2021-09-27 12:03:35 +02:00
|
|
|
export FLASK_APP=app.py
|
|
|
|
export FLASK_ENV=development
|
|
|
|
export SECRET_KEY="e38hq!@0n64g@qe6)5csk41t=ljo2vllog(%k7njnm4b@kh42c"
|
2022-01-21 15:02:34 +01:00
|
|
|
export HYDRA_CLIENT_ID="dashboard-local"
|
2022-01-19 09:16:22 +01:00
|
|
|
export HYDRA_CLIENT_SECRET="gDSEuakxzybHBHJocnmtDOLMwlWWEvPh"
|
2022-01-18 10:48:18 +01:00
|
|
|
export HYDRA_AUTHORIZATION_BASE_URL="https://sso.init.stackspin.net/oauth2/auth"
|
|
|
|
export TOKEN_URL="https://sso.init.stackspin.net/oauth2/token"
|
2022-03-21 08:02:29 +01:00
|
|
|
|
|
|
|
# Login facilitator paths
|
2022-03-22 07:16:53 +01:00
|
|
|
export KRATOS_PUBLIC_URL=http://localhost/kratos
|
2022-03-21 08:02:29 +01:00
|
|
|
export KRATOS_ADMIN_URL=http://localhost:8000
|
2022-04-04 14:24:30 +02:00
|
|
|
export HYDRA_PUBLIC_URL="https://sso.init.stackspin.net"
|
2022-03-21 08:02:29 +01:00
|
|
|
export HYDRA_ADMIN_URL=http://localhost:4445
|
2022-04-04 14:31:17 +02:00
|
|
|
export LOGIN_PANEL_URL=http://localhost/web/
|
2022-04-01 09:15:30 +02:00
|
|
|
#export DATABASE_URL="mysql+pymysql://stackspin:stackspin@localhost/stackspin?charset=utf8mb4"
|
2022-04-07 14:49:02 +02:00
|
|
|
export DATABASE_URL="mysql+pymysql://stackspin:OZBSDkMdbdvEIOomnwpOqLdaiHDKbzWY@localhost/stackspin"
|
2022-03-21 08:02:29 +01:00
|
|
|
|
2021-09-27 12:03:35 +02:00
|
|
|
flask run
|