Traccar serves web interface and API using regular HTTP protocol, which does not use any encryption. This guide provides instructions on to enable HTTPS on Windows using Caddy server.
To enable HTTPS you need a domain name. If you don't have a domain yet, check our documentation on how register and to configure a custom domain name with Traccar.
Caddy installation and configuration steps:
Download Caddy server with standard features
Create C:\Program Files\Caddy and move the downloaded file there
Rename file to caddy.exe
Create Caddyfile text file in the same folder with the following content (replace demo with your domain)
demo.traccar.org:80 {
reverse_proxy http://localhost:8082
}
demo.traccar.org:443 {
reverse_proxy http://localhost:8082
}
Create a Windows service
sc.exe create caddy start= auto binPath= "C:\Program Files\Caddy\caddy.exe run"
Start the service
sc.exe start caddy