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}`; }