this post was submitted on 27 Jan 2025
442 points (98.5% liked)

Selfhosted

41554 readers
613 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

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.

(page 2) 46 comments
sorted by: hot top controversial new old
[–] Overshoot2648@lemm.ee 1 points 2 days ago (2 children)

I've been wanting do something similar, but with Authentik. Does anyone know a good guide on this?

load more comments (2 replies)
[–] skeptomatic@lemmy.ca 4 points 2 days ago* (last edited 2 days ago)

Same boat (in the learning cycle that is). No idea what immich is, but I got Stirling-PDF hosting in docker. I only learned the other day that localhost, is localhost for the container. I couldn't get a bunch of stuff running for.ever, till I learned the way I was calling things needed to be to host.docker.internal.

[–] Nibodhika@lemmy.world 3 points 2 days ago (2 children)

O have a very similar setup but have a couple of questions if you don't mind me asking, what did you used for OAuth? and where is it running? I tried athelia on the VPS but had some problems I can't remember now and decided it wasn't worth the time at the time, but probably should set it up.

[–] randombullet@programming.dev 2 points 2 days ago

I just use google OAuth since everyone I know has a google account. It just can't use OAuth on private IP addresses, just FQDNs.

load more comments (1 replies)
[–] ch00f@lemmy.world 3 points 2 days ago (1 children)

I just finally got it this weekend when I got Matrix-synapse and Pixelfed working on the same box.

All I can say is good for you! It wasn’t easy. And it’s so powerful.

[–] perishthethought@lemm.ee 3 points 3 days ago (1 children)

Wow, so my understanding of the terms 'reverse proxy' and Tailscale must be wrong then, because I thought they were mutually exclusive. I'll go do some more research, unless someone feels like explaining how you can do both at the same time.

Also, I think the 'Risks' section of this page is informative:

https://en.m.wikipedia.org/wiki/Reverse_proxy

[–] lambdabeta@lemmy.ca 2 points 3 days ago

I think self hosting the proxy with the services at hobbyist scale mitigates most of the security risks. The single point of failure risk is another matter. I once had to effectively reverse-hack my services by uploading a Jenkins test job through an existing java project to regain access. Ever since then, I maintain a separate ddns address that's just used for emergency ssh access.

[–] couch1potato@lemmy.dbzer0.com 2 points 2 days ago

I just got this set up last week too. Same setup with caddy on a free oracle vps, tailscale on vps and home pfsense router, tailscale on pfsense advertising routes (private IPs of my docker hosted services).

CGNAT sucks 🤮

[–] kratoz29@lemm.ee 2 points 2 days ago (2 children)

Tailscale?

Is this setup advisable for the CGNATED environment?

[–] ikidd@lemmy.world 3 points 2 days ago (1 children)

This is necessary for CGNat ISPs. That or cloudflared or ngrok or the like. Because you aren't really routable on a CGNAT address.

[–] kratoz29@lemm.ee 1 points 2 days ago (3 children)

In a nutshell, CGNAT users must spend money for something that people with IPv4 addresses can do for free 😔

load more comments (3 replies)
[–] randombullet@programming.dev 3 points 2 days ago (1 children)

You will need a VPS as your other endpoint

[–] kratoz29@lemm.ee 1 points 2 days ago

Ah, I figured... I used to do this with Wireguard instead of Tailscale.

[–] PunkiBas@lemmy.world 3 points 3 days ago

Congratulations!

It feels really good when you learn something new and get it working the way you like.

If you want more challenges take a look at this:

Immich-public-proxy

This would be useful if you ever wanted to share albums with other people outside your tailscale network and that lack an account for your immich server.

[–] happydoors@lemm.ee 2 points 3 days ago

Congrats! I just pulled off the same thing last week using cloudflare tunneling? The phrase “reverse proxy” scared me too much lol. So props to you.

[–] ZebraGoose@sh.itjust.works 2 points 3 days ago

Nice work! 😎

[–] kat@orbi.camp 2 points 3 days ago* (last edited 3 days ago)

Just be sure to read up on network security and set yourself up for success! Even tunnels can still be an attack surface. Always keep everything up to date! And plan for the worst case.

[–] SidewaysHighways@lemmy.world 2 points 3 days ago

me too like last week!!! yay us!!

haven't gotten oauth going yet but soon

[–] N0x0n@lemmy.ml 2 points 3 days ago

I know that feeling ! My first service hosted via docker + Treafik outside my lan with a wireguard tunnel felt like a big dopamine hit ! Congrats !

Now I have over 20 services and It feels trivial :( I still love the easy to read/write syntax of Treafik ,however I feel like I'm missing a lot of important networking knowledge while avoiding Nginx !

Maybe one day when I'm too bored I will switch everything to Nginx, see how it goes !

[–] 4am@lemm.ee 1 points 3 days ago* (last edited 3 days ago) (1 children)

Quick, now lean a firewall with a good IDS

and fail2ban

[–] jagged_circle@feddit.nl 1 points 3 days ago* (last edited 3 days ago)

I prefer wazuh. Much more powerful and preconfigured with tons of rules

load more comments
view more: ‹ prev next ›