]> PHS Git Server - phs-api.git/commitdiff
Fixing ssh connection.
authorcharleswrayjr <charleswrayjr@gmail.com>
Thu, 4 Sep 2025 09:48:35 +0000 (04:48 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Thu, 4 Sep 2025 09:48:35 +0000 (04:48 -0500)
src/controllers/git.controller.js

index f0ef4bd920c4d7df77eec666820247c9fc09148b..3e532c8999bbd9e65a0a69c24b3cac26375a7bda 100644 (file)
@@ -1,10 +1,10 @@
 const fs = require('fs');
 const { Client } = require('ssh2');
 const sshConfig = {
-  host: '10.8.0.1',
+  host: 'host.docker.internal',
   port: 22,
   username: 'git',
-  privateKey: fs.readFileSync('/home/git/.ssh/git-ui'),
+  privateKey: fs.readFileSync('/root/.ssh/git-ui'),
 };
 
 module.exports = {