12
NPM vs Traefik? (lemmy.world)

There have been a few Reddit, Lemmy and Youtube posts over the past week or so about Nginx Proxy Manager and their shortfalls, mostly towards CVEs and other security issues.

The problem is that unlike Traefik, NGINX Proxy Manager is actually easy to use. And before you recommend Caddy, that also has no GUI.

What do you use, if you have stuff exposed to the outside?

you are viewing a single comment's thread
view the rest of the comments
[-] dustojnikhummer@lemmy.world 1 points 1 year ago

That is the easy part. What I haven't been able to get working is services outside of docker, ie on other servers

[-] ironhydroxide@partizle.com 2 points 1 year ago* (last edited 1 year ago)

Setup rules that forward to an IP:port I used a guide on smarthomebeginner initially. I'll try and find it found it.

Go here https://www.smarthomebeginner.com/traefik-docker-compose-guide-2022/

And scroll till the section. "Adding non-docker or external apps behind Traefik"

[-] dustojnikhummer@lemmy.world 3 points 1 year ago

That seems to have done it!

http:
  routers:
    jellyfin-rtr:
      rule: "Host(`[redacted].com`)"
      entryPoints:
        - websecure
      service: jellyfin-svc
      tls:
        certResolver: letsencrypt
  services:
    jellyfin-svc:
      loadBalancer:
        servers:
          - url: "http://[]redacted]:8096" 
[-] chiisana@lemmy.chiisana.net 2 points 1 year ago

🎉

Glad you’re able to get this working and welcome to Traefik !

[-] dustojnikhummer@lemmy.world 1 points 1 year ago

Glad to be here. I have been using Traefik for well over a year, but through TrueCharts, glad to have done this on my own

[-] chiisana@lemmy.chiisana.net 1 points 1 year ago

I did that on Traefik 1 on an older stack, but since moving to Traefik 2, I'm all containers, so I haven't done it on Traefik 2 yet. However, I'd imagine maybe you can use the load balancer example with just 1 private-ip server behind it? https://doc.traefik.io/traefik/routing/services/

this post was submitted on 05 Jul 2023
12 points (80.0% liked)

Selfhosted

39677 readers
160 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