31

First things first, the setup is currently up and running. but i would like to modify it to use a reverse proxy through my personal domain.

Currently, i'm using an old pc with Truenas and a jail with jellyfin in it. i'm connecting to it with the free Fritz!Box VPN service.

but that's stupid and slow. so i've bought a domain at godaddy.com. but i don't understand the principle of whatever is managing the domain knowing the public IP-adress of my server. i've heard of Caddy, but it's also running locally, so i don't understand how i connect the pc to the domain.

if anyone could simplify this down for me, it'd be very helpful.

you are viewing a single comment's thread
view the rest of the comments
[-] biddy@feddit.nl 3 points 8 months ago

There's a nice explanation of how caddy reverse proxies work here. https://caddy.community/t/using-caddy-as-a-reverse-proxy-in-a-home-network/9427

Essentially you setup your router to port forward any new incoming connections to Caddy, which then decides what to do with them according to the configuration (Caddyfile).

Even simpler: Your local network is like a castle, inside is a safe and secure place where your devices communicate freely. Your router is a firewall around the castle, by default it blocks incoming connections. This is good because the internet is scary. By port forwarding you allow a door in the firewall which leads to Caddy, which is like a guard. Caddy asks them what they want, and if they say e.g. jellyfin.example.com, then it sets up an encrypted connection with https to your local jellyfin server. If they want anything else they aren't allowed in.

this post was submitted on 25 Oct 2023
31 points (89.7% liked)

Selfhosted

37770 readers
237 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 1 year ago
MODERATORS