diff --git a/.gitignore b/.gitignore index 75dcbca..5570a53 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,7 @@ .vscode __pycache__ *.pyc -.DS_Store \ No newline at end of file +.DS_Store +*.swp +.envrc +.direnv diff --git a/run_app.sh b/run_app.sh index c85adab..4d6074a 100755 --- a/run_app.sh +++ b/run_app.sh @@ -33,6 +33,6 @@ export HYDRA_PUBLIC_URL="https://sso.init.stackspin.net" export HYDRA_ADMIN_URL=http://localhost:4445 export LOGIN_PANEL_URL=http://localhost/web/ #export DATABASE_URL="mysql+pymysql://stackspin:stackspin@localhost/stackspin?charset=utf8mb4" -export DATABASE_URL="mysql+pymysql://stackspin:IRvqAzhKMEdIBUUAWulIfZJLQgclLQDm@localhost/stackspin" +export DATABASE_URL="mysql+pymysql://stackspin:OZBSDkMdbdvEIOomnwpOqLdaiHDKbzWY@localhost/stackspin" flask run diff --git a/set-ssh-tunnel.sh b/set-ssh-tunnel.sh index fcb2ef4..ca1ae53 100755 --- a/set-ssh-tunnel.sh +++ b/set-ssh-tunnel.sh @@ -19,9 +19,9 @@ then namespace="stackspin" fi -admin=`ssh $host -lroot kubectl get service -n $namespace |grep single-sign-on-kratos-admin | awk '{print $3'}` -public=`ssh $host -lroot kubectl get service -n $namespace |grep single-sign-on-kratos-public | awk '{print $3}'` -hydra=`ssh $host -lroot kubectl get service -n $namespace |grep single-sign-on-hydra-admin | awk '{print $3}'` +admin=`ssh $host -lroot kubectl get service -n $namespace |grep kratos-admin | awk '{print $3'}` +public=`ssh $host -lroot kubectl get service -n $namespace |grep kratos-public | awk '{print $3}'` +hydra=`ssh $host -lroot kubectl get service -n $namespace |grep hydra-admin | awk '{print $3}'` mysql=`ssh $host -lroot kubectl get service -n $namespace |grep single-sign-on-database-maria|grep -v headless | awk '{print $3}'` @@ -42,4 +42,4 @@ hydra admin port will be at localhost: 4445 mysql port will be at localhost: 3306 " -ssh -L 8000:$admin:80 -L 8080:$public:80 -L 4445:$hydra:4445 -L 3306:$mysql:3306 root@$host \ No newline at end of file +ssh -L 8000:$admin:80 -L 8080:$public:80 -L 4445:$hydra:4445 -L 3306:$mysql:3306 root@$host