The docker run command also doesn't create a mount point on the host for the data folder which will cause the database to be lost when the container is recreated. The default when executing the above docker run command is an internal H2 database but this should only be for basic use. volume /opt/traccar/traccar.xml:/opt/traccar/conf/traccar.xml:ro \ Have fun! Any questions or comments, let me know down below.-volume /opt/traccar/logs:/opt/traccar/logs:rw \ This way, you can remove the port 80 binding in IIS if you want, to force all traffic to your Traccar installation over https: Since your website is now reachable over https, you can change the Challenge Type to tls-sni-01 in Certify: If the website is not opening (times out), check if port 443 inbound is open in your firewall: That’s it! We’re done! Your Traccar installation should now be reachable over HTTPS and have a valid SSL certificate: Therefore, we need to disable Compression in order to get Traccar to play nicely with IIS. If the response is already compressed then URL Rewrite Module will report an error if any of the outbound rules is evaluated against that response. Outbound rewriting can only be applied on un-compressed responses. Next, go to your website in IIS again and click on Compression: Select ‘Rewrite the domain names of the links in the HTTP responses’ from ‘localhost:8082’Īnd select your Traccar domain from the dropdown menu, i.e. In the window that opens, enter ‘localhost:8082’ in the Inbound Rules text field, In the window that opens, click on ‘Reverse Proxy’ and click ‘Ok’ Go to the website you created (in my example Traccar) and click on URL RewriteĬlick on ‘Add Rule(s)’ in the top right corner: If all goes well, you should get ‘Success’ Next, click ‘Request Certificate’ to request your free valid SSL certificate from Let’s Encrypt for your Traccar installation: If all goes well, you should get this popup: Next, go to the Advanced tab and click ‘Test’ to verify if everything is setup correctly The rest of the information should now autofill, based on the details you entered in IIS. Select the website you created in IIS, in my case named ‘Traccar’: So, first, go to ‘Settings’ and set a ‘New Contact’: Before we can request a new certificate, we first need to setup a new contact. Certify will automatically renew your certificates before they expire, so it pretty much takes care of itself.Īfter installing, open Certify. In the window that opens, fill in the following details:Ĭhange the variables to meet your environment.Ĭlose IIS for now and download and install ‘Certify the web’, a free ( up to 5 websites) SSL Certificate Manager for Windows (powered by Let’s Encrypt). Just search for ‘URL Rewrite’ in the search options and click ‘Add’.Īfter installing, do the same for the Application Request Routing 3.0 add-on module: From Windows Server 2012 R2 and up, you can use the Microsoft Web Platform Installer (WebPI) to download and install the URL Rewrite Module. sync your update with the rest of the world.)įirst, install the URL Rewrite add-on module. Please note that it can take up to 24 hours, but usually no more than 1-2 hours, for your DNS servers to ‘propagate’, i.e. replace ‘123.123.123.123’ with the IP of your Traccar server and ‘’ with your own (sub)domain. (Of course, in the screenshot above, change the variables to meet your environment, i.e. A Fully Qualified Domain Name (FQDN), for example ‘’, with an A record pointing to the IP of your Traccar server:. A working Traccar instance, reachable over http (by default installed on Windows Server 2012 R2 or Windows Server 2016.We’ll be using Let’s Encrypt to generate a free valid certificate for your Traccar installation. Since Traccar has no native support for encrypted connections, we’ll do so by setting up a Reverse Proxy using IIS ( which is the recommended method by the developer). Traccar is a free and open source modern GPS tracking system. In this guide, I’m going to show you how to secure your Traccar installation with SSL, so that it can be reached over https instead of http.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |