Freika / dawarich

Self-hosted alternative to Google Location History (Google Maps Timeline)
https://dawarich.app
GNU Affero General Public License v3.0
1.97k stars 40 forks source link

Points page reloads #283

Open Tazmanian79 opened 4 days ago

Tazmanian79 commented 4 days ago

Describe the bug On the 'Points' page the data is standard from -1 month till today. When I change to date too for example 22/08/2024 till 22/08/2024 when the results should be loaded it changes the selected date again to the standard (-1 month till today)

Version 0.14.4

sunstep commented 4 days ago

Are you using a reverse proxy?

Tazmanian79 commented 3 days ago

Yes.

I tried it in my local netwerk (with IP) and throught the reverse proxy but both have same behaviour. It's only on the points page, not on the map page.

sunstep commented 3 days ago

Can you post what server you are using and the configuration that you use for the reverse proxy?

Tazmanian79 commented 3 days ago

I'm running it in Docker on a Synology NAS.

Here you can find how to setup reverse proxy on a Synology NAS: https://mariushosting.com/synology-how-to-use-reverse-proxy-on-dsm-7/

sunstep commented 3 days ago

I never used Synology NAS my self, but try this:

Go to the reverse proxy, and then go to the custom headers tab. Now make sure you have the following custom headers in place:

Header name                                                 value

X-Real-IP                                                 $remote_addr
X-Forwarded-For                                           $proxy_add_x_forwarded_for
X-Forwarded-Proto                                         https
X-Forwarded-Server                                        $host
Host                                                      $http_host
proxy_redirect                                            off
Tazmanian79 commented 3 days ago

My reverse proxy is working, so don't need to change anything.

This problem wasn't any issue before. But last week a reinstalled Dawarich and since than have this.

misterpfister12 commented 3 days ago

I'm facing the same issue behind my working Reverse Proxy AND via direct local network access (without any proxy involved!).

And also only for the Points-selection - NOT for the Map-selection.

sunstep commented 3 days ago

This could still be a reverse proxy issue -- even if your reverse proxy is working. Try setting the headers and report back.

sunstep commented 3 days ago

I just tested it, and it's indeed not a reverse proxy issue. Ignore the reply above.

misterpfister12 commented 3 days ago

Too late: I did the testing as well... Have seen your post too late. :-)

but THANKS that you looked into it! Appreciated...!!

Freika commented 1 day ago

Fixed in https://github.com/Freika/dawarich/releases/tag/0.14.5