- guacamole.service.ts: raw TCP client to guacd on GUACD_HOST:GUACD_PORT. Performs SELECT rdp → CONNECT handshake with full RDP parameter set. Provides encode/decode helpers for length-prefixed Guacamole wire format. - rdp.gateway.ts: WebSocket gateway at /ws/rdp. JWT auth via WsAuthGuard. Handles connect (host lookup, credential decrypt, guacd tunnel open) and guac (bidirectional instruction forwarding). Updates lastConnectedAt and creates ConnectionLog on connect (same pattern as SSH gateway). - rdp.module.ts: imports VaultModule, ConnectionsModule, AuthModule. - app.module.ts: registers RdpModule. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
13 lines
457 B
TypeScript
13 lines
457 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { GuacamoleService } from './guacamole.service';
|
|
import { RdpGateway } from './rdp.gateway';
|
|
import { VaultModule } from '../vault/vault.module';
|
|
import { ConnectionsModule } from '../connections/connections.module';
|
|
import { AuthModule } from '../auth/auth.module';
|
|
|
|
@Module({
|
|
imports: [VaultModule, ConnectionsModule, AuthModule],
|
|
providers: [GuacamoleService, RdpGateway],
|
|
})
|
|
export class RdpModule {}
|