Skip to content

Commit 3fb66de

Browse files
committed
Merge branch 'nik-2345' into 'master'
Use 2345 as server's API port in UI connection snippet See merge request postgres-ai/database-lab!852
2 parents 8c7cf6e + 3ac0a9b commit 3fb66de

File tree

1 file changed

+3
-1
lines changed
  • ui/packages/shared/pages/Instance/Info/Connection/ConnectModal/Content

1 file changed

+3
-1
lines changed

ui/packages/shared/pages/Instance/Info/Connection/ConnectModal/Content/utils.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ export const getSshPortForwardingCommand = (instance: Instance) => {
1515
// Parse the URL to get the port
1616
const url = new URL(instance.url as string)
1717
const port = url.port || '2345'
18-
return `ssh -NTML ${port}:localhost:${port} ${instance.sshServerUrl} -i ~/.ssh/id_rsa`
18+
// Here we hard-code the API port on the server (2345)- this is a requirement now
19+
// for all DBLab instances working via tunnel, per decision made (NIkolayS 2024-05-22)
20+
return `ssh -NTML ${port}:localhost:2345 ${instance.sshServerUrl} -i ~/.ssh/id_rsa`
1921
} else {
2022
return null
2123
}

0 commit comments

Comments
 (0)