pcouy

joined 2 years ago
[–] pcouy@lemmy.pierre-couy.fr 5 points 1 year ago* (last edited 1 year ago)

I used to wonder what kind of nerd notices this kind of thing, now I'm one of them

Edit : If you want to join us :

  • you can run Pi-hole which is a self-hosted DNS server that allow monitoring/blocking DNS requests from devices configured to use it. In its default configuration, it acts as a network wide ad/tracker blocker.
  • On Android, you can install Rethink DNS. This will configure itself as a VPN on your device, forcing all traffic to go through it. This allows it to act as an on-device firewall that allow monitoring/blocking DNS requests and TCP/UDP connections. This is similar to the features of Pi-hole, but the fact that it's on-device allows it to be app aware : the logs will detail which app is responsible for which connection, and the allow/block rules can be app-dependent. The app honestly goes beyond all my expectations :
    • it does a good job at being easy to use by default
    • it is very configurable which gives you a lot of control if you want/need/can handle it
    • You can configure it to route traffic (after applying firewall rules) to a Wireguard VPN or through Orbot. (Apps that act as VPNs are not compatible with each other : you can only have one active at a time)
    • You can even configure several Wireguard interfaces at the same time, and route specific apps through specific tunnels
[–] pcouy@lemmy.pierre-couy.fr 3 points 1 year ago* (last edited 1 year ago)

I don't use Traefik myself, but this documentation page seems to suggest that Traefik only allows in-memory cache (which would eat RAM and not persist across reboots). You can probably run Nginx with this config inside a container for the caching, then use Traefik to handle requests to immich.your-domain.tld/map_proxy/* with the caching proxy container.

[–] pcouy@lemmy.pierre-couy.fr 1 points 1 year ago (1 children)

What do you mean ? Can you give me the exact link that's not working ?

[–] pcouy@lemmy.pierre-couy.fr 25 points 1 year ago* (last edited 1 year ago) (2 children)

At this point, I'll just assume you are trolling and stop replying after this comment.

This post is trying to provide a generic solution to the fact that there are no reasonable way to get map tiles without relying on a third party provider.

I additionally included instructions on how to set it up with Immich, but I don't see how a caching proxy in front of OSM should be part of Immich, a software focused on managing photo libraries.

[–] pcouy@lemmy.pierre-couy.fr 22 points 1 year ago (4 children)

How does an nginx config fit as a "diff" when the Immich repo and docker images do not include nginx (or any other reverse proxy) ?

[–] pcouy@lemmy.pierre-couy.fr 43 points 1 year ago (7 children)

Blocking the DNS was the first thing I did. This is intended to restore the map feature without having to trust a random company I've never heard of.

What do you mean by "a diff of a code fix" that would be simpler ?

[–] pcouy@lemmy.pierre-couy.fr 23 points 1 year ago (1 children)

You can, but you would not be able to display the map. Might as well disable the map server-wide

[–] pcouy@lemmy.pierre-couy.fr 20 points 1 year ago

Not yet, but I will probably submit a PR to include this guide in the docs

[–] pcouy@lemmy.pierre-couy.fr 2 points 1 year ago* (last edited 1 year ago) (1 children)

I'll try clarifying what I had in mind :

I tried running maptiler to generate tiles from OSM's data, which required an insane amount of time and resources (not doable for most self-hosters including myself, even for a single country) to process the data and store the results. I was wondering if there would be a way to ask maptiler (or another equivalent tool) to only generate tiles that contain points from a given set (in this case, photos) and maybe the tiles adjacent to them. What about doing this for every zoom level ? This would require generating at most zoom_levels * n_photos (* 9) if we include adjacent) tiles, and a lot less for the typical person taking several photos at the same place.

[–] pcouy@lemmy.pierre-couy.fr 5 points 1 year ago (3 children)

Thanks for sharing your experience and for the links.

Do you think it would be doable to make/host a tileserver that only generates the first few zoom levels for the whole planet by default, and is able to generate tiles for more detailed zoom levels only for specific locations ? I'm thinking of a feature where Immich asks the tile server to generate the appropriate tiles based on the locations of photos. Since we only ever zoom on locations where photos have been taken, and we often take several photos at the same locations, could this decrease the requirements enough for self-hosting ?

[–] pcouy@lemmy.pierre-couy.fr 13 points 1 year ago

No need to be rude...

[–] pcouy@lemmy.pierre-couy.fr 20 points 1 year ago (6 children)

Thanks for the detailed feedback. According to one Immich dev, they used to use OSM's raster tile provider but switched away from it since they were causing too much load on OSM's servers.

There does not seem to be any non-commercial vector-tile provider at the moment (though OSM seems to be currently working on it), and it seems really overkill to try and self-host a tile provider (at least with the default level of details). Maybe the way is to find a balanced level of details that makes it reasonable to self host

view more: ‹ prev next ›