5/18/2023 0 Comments Traccar web api![]() Note that you also need to recompile the modern app for it to work correctly on a new path. ProxyPass /gps/ ProxyPassReverse /gps/ ProxyPassReverseCookiePath / /gps/ Navigation is done using React Router framework. Application is based on the React framework with Materia UI for the user interface. The web app relies on the API described above. ProxyPassReverse /gps/api/socket ws://localhost:8082/api/socket Traccar system includes a web application for managing users, devices and other information. ProxyPass /gps/api/socket ws://localhost:8082/api/socket Here is a proxy configuration example: ProxyRequests off If you want Traccar to be in a subdirectory, in additional to proxying requests, you also need to adjust cookies path. Generally we recommend to avoid this and use a subdomain for Traccar instead. This part is only needed if you want to make your server available in a non root path. Once the process is complete, you should have your server available via an HTTPS connection. If you don't own a domain name yet, we recommend Namesilo with consistently low prices both for new domains and renewals.Īfter a domain name is configured and pointing to the server you can generate a free SSL certificate for your server using Let's Encrypt: sudo apt install certbot python3-certbot-apacheįollow the instructions from Certbot. Check our documentation on how register and to configure a custom domain name with Traccar. traccar-web Public Traccar GPS Tracking System JavaScript 644 GPL-3.0 909 45 4 Updated Mar 14, 2023. To get a valid SSL certificate you have to have a domain name. Next, disable the default site and enable the newly added configuration: sudo a2dissite 000-default SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key Instalación de plataforma Traccar para rastreo GPS Job Description: Deseo alguien con experiencia en instalación de plataformas Traccar para rastreo, la instalación será en un VPS, así mismo deseo que queden configurado los mapas con el api key de Google y si tiene conocimiento en el desarrollo de aplicaciones Android, se le pagaría el extra. SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem ProxyPass / ProxyPassReverse / SSLEngine on ProxyPassReverse /api/socket ws://localhost:8082/api/socket ProxyPass /api/socket ws://localhost:8082/api/socket Next, add a new site configuration: sudo nano /etc/apache2/sites-available/nfĬontent for the site configuration (replace with your domain): Sudo a2enmod ssl proxy_http proxy_wstunnel rewrite In this guide we will use Apache server with a proxy module.įirst, install the latest version of Apache server and enable required modules: sudo add-apt-repository ppa:ondrej/apache2 Traccar does not support secure connection out of the box, but a proxy server can be used to tunnel all requests through a secure connection. For Windows configuration using IIS check this forum thread. Examples are for Ubuntu Linux, but the general idea can be applied to all platforms. This guide provides instructions on how to configure Traccar to use secure HTTPS protocol with SSL/TLS encryption of all traffic. Traccar serves web interface and API using regular HTTP protocol, which does not use any encryption.
0 Comments
Leave a Reply. |