Skip to content
Snippets Groups Projects
Verified Commit ce5a7d05 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

fix: set new URLs for set-ssh-tunnel script

parent b53bffbc
No related branches found
No related tags found
1 merge request!55Resolve "Merge dashboard and dashboard-backend repos"
...@@ -3,4 +3,7 @@ ...@@ -3,4 +3,7 @@
.vscode .vscode
__pycache__ __pycache__
*.pyc *.pyc
.DS_Store .DS_Store
\ No newline at end of file *.swp
.envrc
.direnv
...@@ -33,6 +33,6 @@ export HYDRA_PUBLIC_URL="https://sso.init.stackspin.net" ...@@ -33,6 +33,6 @@ export HYDRA_PUBLIC_URL="https://sso.init.stackspin.net"
export HYDRA_ADMIN_URL=http://localhost:4445 export HYDRA_ADMIN_URL=http://localhost:4445
export LOGIN_PANEL_URL=http://localhost/web/ export LOGIN_PANEL_URL=http://localhost/web/
#export DATABASE_URL="mysql+pymysql://stackspin:stackspin@localhost/stackspin?charset=utf8mb4" #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 flask run
...@@ -19,9 +19,9 @@ then ...@@ -19,9 +19,9 @@ then
namespace="stackspin" namespace="stackspin"
fi fi
admin=`ssh $host -lroot kubectl get service -n $namespace |grep single-sign-on-kratos-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 single-sign-on-kratos-public | 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 single-sign-on-hydra-admin | 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}'` 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 ...@@ -42,4 +42,4 @@ hydra admin port will be at localhost: 4445
mysql port will be at localhost: 3306 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 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment