Change http to https on Synology

Ruben3 years ago

Hi,

Because i want to show my traccar, running on my synology with the package from 1sthandy, i should need to change it from http to https.
Can somebody tell me how to het this working?

Thanks

Ruben3 years ago

Something is missing in my question.
I want to show it on my wordpress website.

Azathoth883 years ago

Hello, you can use the reverse proxy from synology to change your http-request to https.

Ruben3 years ago

@Azathoth88
Thanks for the reply.

Ik almost got it working.
I made a reverse proxy from https port 550 to http port 55000
But now i do not see the position of my GPS on https://xxx.xxx.nl:550/simple/?token=WImOHzyM51ET0LTBVYE9RaLctg6e1ORi
on http://xxx.xxx.nl:55000/simple/?token=WImOHzyM51ET0LTBVYE9RaLctg6e1ORi
i do see the location

In the right corner i get websocket connection error

Azathoth883 years ago

Try adding a custom header for WebSocket.
Under DSM 7: Go to the reverse proxy rule and choose custom header. Under create you can integrate the header for WebSocket.

See example: https://i.imgur.com/L0qz1qf.png

Ruben3 years ago

Okee Fixed this.
Thanks for helping.

Now the next problem.
I tried different setups, but i can only see the live location when i am logged into the backend.

1- Made a new user, added the tracker, set the user to readonly and tried to view with the token
2- Added the tracker as admin, made a new user "webview' which i set to read only and nothing to see with the token