build issue

Ali Ber3 years ago

Hello anton , I have installed traccar in Virtual machine , I changed .env variables from host to VM adress ip, when I build, I cant login from other machines , I checked the post request and it is : POST " adresse of VM/api/session " wich should have worked if it is "adress:8082/api/session"
any help please

Anton Tananaev3 years ago

Proxy is only for debugging.

Ali Ber3 years ago

alright , what should I change in the setupProxy to target the addresse and port of the backend

Anton Tananaev3 years ago

That's something you should set up on your server separately, not in the code. You can use Apache or any other proxy option for that.

Ali Ber3 years ago

I use Nginx but still in the login page, it doesnt target the adresse:8082/api/session instead it only send request adress/api/session

Ali Ber3 years ago

Problem fixed : for users with the same problem check: https://www.traccar.org/forums/topic/nginx-proxy-working/