fix: separate Docker API port from SSH port, add SSH credential UI, fix compose_dir routing

This commit is contained in:
SaelixCode
2026-03-18 21:04:43 -04:00
parent 792e977098
commit 26b8f62968
8 changed files with 99 additions and 14 deletions
+2 -1
View File
@@ -10,14 +10,15 @@ export class FileSystemService {
private nodeId: number;
constructor(nodeId?: number) {
this.baseDir = process.env.COMPOSE_DIR || '/app/compose';
this.nodeId = nodeId ?? NodeRegistry.getInstance().getDefaultNodeId();
const node = NodeRegistry.getInstance().getNode(this.nodeId);
if (!node || node.type === 'local' || !node.host) {
this.baseDir = process.env.COMPOSE_DIR || '/app/compose';
this.adapter = new LocalFileAdapter();
} else {
this.baseDir = node.compose_dir || '/app/compose';
this.adapter = new SSHFileAdapter(node);
}
}