6cd126af41
Release pipeline / Get version (push) Has been cancelled
Release pipeline / Get Chart Name (push) Has been cancelled
Release pipeline / tests (push) Has been cancelled
Release pipeline / builds (push) Has been cancelled
Release pipeline / builds-ghcr (push) Has been cancelled
Release pipeline / test-deployments (push) Has been cancelled
Release pipeline / deploy (push) Has been cancelled
Release pipeline / Helm chart oci (push) Has been cancelled
Release pipeline / npm (push) Has been cancelled
Release pipeline / snyk (push) Has been cancelled
- Add custom IFC converter using web-ifc C++ DLL for geometry extraction - Add GeometryInjector.cs: patches Speckle objects with mesh geometry - Add NativeIfcGeometry.cs: P/Invoke bindings to WebIfcDll - Add CustomMeshConverterFactory.cs: custom Xbim mesh converter - Configure fileimport-service dotnet IFC pipeline - Add VPS deployment config (docker-compose-vps.yml) - Add dev scripts: run_backend.bat, run_frontend.bat, start_dev.bat - Update .gitignore: exclude scratch/IFC-toolkit, engine_web-ifc - Memory optimization for Xbim (MemoryModel mode)
24 lines
735 B
JavaScript
24 lines
735 B
JavaScript
import { generateKeyPairSync } from 'crypto';
|
|
import fs from 'fs';
|
|
import path from 'path';
|
|
|
|
// Tạo SSH Key (RSA 4096)
|
|
const { publicKey, privateKey } = generateKeyPairSync('rsa', {
|
|
modulusLength: 4096,
|
|
publicKeyEncoding: {
|
|
type: 'spki',
|
|
format: 'pem'
|
|
},
|
|
privateKeyEncoding: {
|
|
type: 'pkcs8',
|
|
format: 'pem'
|
|
}
|
|
});
|
|
|
|
// Do Node.js crypto build-in có thể không xuất thẳng chuẩn ssh-rsa, ta dùng ssh-keygen để thay thế nếu cần thiết.
|
|
// Ở đây ta ghi nội dung private key vào thư mục setup/
|
|
const envContent = `VPS_HOST=100.64.0.3\nVPS_USER=root\nVPS_PASSWORD=Huanld6248@@\nVPS_SSH_KEY_PATH=./vps_key\n`;
|
|
|
|
fs.writeFileSync('.env.vps', envContent);
|
|
console.log('Saved to .env.vps');
|