fix: set new URLs for set-ssh-tunnel script
This commit is contained in:
parent
b53bffbcd6
commit
ce5a7d05ac
3 changed files with 9 additions and 6 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -3,4 +3,7 @@
|
|||
.vscode
|
||||
__pycache__
|
||||
*.pyc
|
||||
.DS_Store
|
||||
.DS_Store
|
||||
*.swp
|
||||
.envrc
|
||||
.direnv
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
ssh -L 8000:$admin:80 -L 8080:$public:80 -L 4445:$hydra:4445 -L 3306:$mysql:3306 root@$host
|
||||
|
|
Loading…
Reference in a new issue