We don't use Traccar that way, so I wouldn't know off the top of my head.
please how is the build can be done for modern app
I use nginx as a proxy for traccar. nginx+certbot for the ssl connection, certbot will modify the config for ssl. I would recommend this especially if you have multiple websites on one server.
Sample config:
server {
server_name traccar.mydomain.com;
location '/.well-known/acme-challenge' {
root /var/www/html;
}
location / {
proxy_pass http://localhost:8082;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
}
Thanks Vince, I did the same thing , with the react modern app , and it took me some time to get it work
Hello anton , I always have this issue , I built the app, I copied the build folder into html folder of nginx, when I run nginx, I have 404 on my server requests
what could be the probleme please