From 3814d175ff67bfbd837d9aeabf29b188f3d84bb5 Mon Sep 17 00:00:00 2001 From: kyle Date: Mon, 2 Feb 2026 23:27:35 +0100 Subject: [PATCH] feat: enable SSL on Traccar device port 5055 - nginx stream module now terminates SSL on port 5055 - Backend returns HTTPS URL for device server - More secure GPS data transmission Co-Authored-By: Claude Opus 4.5 --- backend/src/gps/traccar-client.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/gps/traccar-client.service.ts b/backend/src/gps/traccar-client.service.ts index ca790fe..8c40cb8 100644 --- a/backend/src/gps/traccar-client.service.ts +++ b/backend/src/gps/traccar-client.service.ts @@ -343,7 +343,7 @@ export class TraccarClientService implements OnModuleInit { /** * Get the device port URL for mobile app configuration - * Returns full HTTP URL - port 5055 uses OsmAnd protocol without SSL + * Returns full HTTPS URL - nginx terminates SSL on port 5055 */ getDeviceServerUrl(): string { const port = this.configService.get('TRACCAR_DEVICE_PORT') || '5055'; @@ -352,8 +352,8 @@ export class TraccarClientService implements OnModuleInit { const traccarUrl = this.getTraccarUrl(); try { const url = new URL(traccarUrl); - // Return HTTP URL (not HTTPS) - OsmAnd protocol on port 5055 doesn't use SSL - return `http://${url.hostname}:${port}`; + // Return HTTPS URL - nginx terminates SSL and proxies to Traccar + return `https://${url.hostname}:${port}`; } catch { return `http://localhost:${port}`; }