Traccar Update Positions on port 5055 to use https

Nikhil 7 years ago

We have the traccar instance hosted over https in linux environment. Now we also require the update positions API i.e localhost:5055/? to also be over https protocol only. Following the docs below only we have configured https
https://www.traccar.org/secure-connection/

How to configure the https on the update postions api as well (localhost:5055/?) which is used in the mobile device.
Kindly let me know we need to do this urgently.

Thanks.

Anton Tananaev 7 years ago

Search forum and GitHub. I believe it has been discussed somewhere.

You can also just use web port, if you are on the latest release.

Nikhil 7 years ago

After searching I have found this configuration:

        <VirtualHost *:4435>

                ServerName traccar.servername.com
                ServerAdmin it@email.com
                DocumentRoot /var/www/html

                ProxyPass / http://localhost:5055/
                ProxyPassReverse / http://localhost:5055/

                SSLEngine on
                SSLCertificateFile /etc/ssl/certs/cert.crt
                SSLCertificateKeyFile /etc/ssl/private/server.key
                SSLCertificateChainFile /etc/ssl/certs/CA.crt

        </VirtualHost>

This is like mapping a port in apache with localhost:5055. Is this config correct? Can I use the same?