Just exposed Immich via a remote and reverse proxy using Caddy and tailscale tunnel. I’m securing Immich using OAuth.

I don’t have very nerdy friends so not many people appreciate this.

  • guy@piefed.social
    link
    fedilink
    English
    arrow-up
    10
    ·
    3 days ago

    Good job!
    I’m still trying to understand what it is and why I would want it. I see several programs I use recommend it but I just don’t get what it does and why what it does is good.

    • catloaf@lemm.ee
      link
      fedilink
      English
      arrow-up
      12
      ·
      3 days ago

      It does a couple things. It’s one service that routes requests to multiple services. So if you have radarr, sonarr, etc., you can put a reverse proxy in front and use the same ip-port to connect to all, and the proxy routes the request to the service by hostname.

      If you have multiple instances of the same service for HA, it can load balance between them (though this is unlikely for a homelab).

      Personally I run all my services through docker and put traefik in front, so that I don’t have to keep track of ports. It’s all by name.

      It’s also nice because traefik handles HTTPS termination, so it automatically gets certs for each name, and the backing service never needs to worry about it (it’s http on the backend, but all that traffic is internal).

      • guy@piefed.social
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        3 days ago

        Thank you for the explanation. But that’s it than? Just convenience with ports?

        • boonhet@lemm.ee
          link
          fedilink
          English
          arrow-up
          5
          ·
          edit-2
          3 days ago

          Well it IS pretty nice to be able to tell people to go to jellyfin.example.com instead of example.com:8096, but you also get security benefits for using a properly set up reverse proxy. You don’t need to keep your ports open to the whole internet, only the reverse proxy accesses them. As far as the rest of the internet is concerned, you have :443 open.

          Edit: Forgot to add, Caddy and NPM and such can also automatically renew your certificates!