48
Reverse proxy (self.selfhosted)
submitted 4 weeks ago* (last edited 4 weeks ago) by mfat to c/selfhosted@lemmy.world

I have an openwrt router at home which also acts as my home server. It's running a bunch of services using docker (Jellyfin, Nextcloud, etc.)

I have set up an SSH tunnel between my openwrt router and VPS and can access jellyfin successfully.

I understand that I need to set up a reverse proxy to access multiple services and have https.

But I'm confused if I should set up this reverse proxy on the VPS or on the router itself. Is nginx the easiest option? Should i add subdomains in cloudflare for every service?

Pease don't recommend vpns since they are all blocked where i live (wireguard, tailscale openVPN, etc.) I'm limited to using ssh tunneling only.

Thanks

you are viewing a single comment's thread
view the rest of the comments
[-] Neon@lemmy.world 7 points 3 weeks ago

If you are new i recommend "Caddy V2"

It is by far the easiest.

Wait with Nginx until you're better. (and even then, use linuxserverio/swag instead of nginx)

[-] mfat 5 points 3 weeks ago

Caddy was exactly what i needed. It magically solved the problem..

[-] bork@sh.itjust.works 2 points 3 weeks ago

Swag was my nginx introduction, and it was mildly confusing because I ran it on docker and didn't understand how to edit configs at the time. I'd recommend following a guide instead of winging it like I did 😅

[-] Samsy@lemmy.ml 2 points 3 weeks ago* (last edited 3 weeks ago)

As someone who used caddy over years, I can't completely agree.

Caddy has some downsides (nextcloud needs special setup for example) and not everyone is familiar with writing a Caddyfile. (Json)

For someone new I would recommend "nginx proxy manager". Easy to install with docker and self explained through GUI.

[-] Neon@lemmy.world 3 points 3 weeks ago

i actually think NPM is more confusing. 1: there are practically always already finished Files for Caddy V2. Most of the times directly in the Repo of the Project. A lot of Devs use Caddy themselves. 2: NPM exposes a lot of Options additionally. This can confuse newcomers. With Caddy, all these extra options are invisible. you just write and see "reverse_proxy jellyfin" and that's it.

[-] gray22@lemmy.ml 2 points 3 weeks ago

Completely agree. I haven't used NPM since I started self hosting a few years ago, but I was never able to get it to work right. I ended up using apache2 as it was pretty well documented everywhere. Moved to caddy v1 when I found it as the config is so easy to write and understand. Moved to v2 when it was released and had no issues. Their forum is incredibly helpful if you run into any issues. At this point its a "relatively" mature platform and most projects I've setup have an example config (usually just 1 or 2 lines because that's all you need).

this post was submitted on 05 May 2024
48 points (91.4% liked)

Selfhosted

37196 readers
183 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