![]() The script will check all requirements and show if anything is missing and where to download missing package. To generate installer, execute setup/package.sh shell script in the terminal. If you are using Windows, you can install Ubuntu in a virtual machine. We recommend the latest version of Ubuntu. You need to have a Linux system as the script is designed for Linux. The only reason you would want to generate installer is to distribute your version of Traccar server. Use the following links for details on how to build each one: Use the latest release when using the master branch for development. Make sure you have a compatible version of Traccar installed. Now you can just replace the file in your Traccar installation and restart the service for changes to take affect. It will automatically download all dependencies and generate tracker-server.jar in the target subfolder. To build the server binary file (JAR) use following command. Android and iOS apps are standard Android Studio and Xcode projects, so there are no special instructions required.įor the IDE (Integrated Development Environment) we recommend using IntelliJ IDEA for the server code and VS Code for the web app. The following instructions are only for building the server and web apps. In most cases all you need is build Traccar from source code and replace the original files on the server with the newly compiled ones. There are three parts for building the full package: Web interface is a git submodule in the main Traccar repository, so you can checkout everything you need with a single git command: git clone -recursive Make sure you get both repositories if you want web interface to work. Note that you also need to recompile the modern app for it to work correctly on a new path.Traccar server consists of a server and a web interface. ProxyPass /gps/ ProxyPassReverse /gps/ ProxyPassReverseCookiePath / /gps/ ![]() ProxyPassReverse /gps/api/socket ws://localhost:8082/api/socket 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. 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. 6 In 2016, Traccar was one of the winners of the 10th Open SW Developer Competition held in South Korea. ![]() Anton Tananaev, the founder of Traccar, in an interview said that he began writing the software in 2009 and made it open source in early 2010. To get a valid SSL certificate you have to have a domain name. Traccar serves web interface and API using regular HTTP protocol, which does not use any encryption. Traccar is owned by Traccar Limited 5 and was founded in 2009. Next, disable the default site and enable the newly added configuration: sudo a2dissite 000-default ![]() SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key 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. Traccar serves web interface and API using regular HTTP protocol, which does not use any encryption. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |