Does anyone have a guide to Traefik for an absolute idiot (myself)?

I was able to get a freshrss server running using dockercompose and was able to connect to it on my local network, but all the guides I read said I NEED to have a reverse proxy before I access it remotely.

This is probably my sign I need to actually learn how to use docker instead of being lazy as hell and copy/pasting code, but I thought I’d ask.

    • fraydabson@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 year ago

      +1 for caddy. I had some issues with traefik and switched to caddy and it’s so easy!

      Just need to learn the more advanced stuff for the Caddyfile like error redirects and what not.

        • fraydabson@sopuli.xyz
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          Im new with reverse proxies. My understanding is that npm is way easier to do stuff with the UI and you use it to setup the certs and all that.

          With caddy it has auto https. So you just need one Caddyfile listing your reverse proxies and that’s it. It just works. No config or anything.

          Now if you want to do more advanced stuff like what you would do with nginx conf files, caddy is very expansive with its directives. Setting up redirects or error pages and what not. It’s super simple in the Caddyfile. I’m still learning how to do more complex stuff like if else statements and what not.

    • PlutoniumAcid@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      I installed npm (Nginx Proxy Manager) without problems before I heard about Caddy.

      Npm works well and requires zero maintenance, and it’s easy to manually add redirects via the web ui when I start new Docker containers.

      “If it works, don’t fix it.” But if I didn’t have npm today I would try Caddy.

    • Lupec@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      Also consider there’s a plugin designed to change its config dynamically through docker labels sort of like Traefik, although I can’t say I’ve used it myself.

    • Synapse@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      Caddy is the only reverse proxy I managed to setup. I failed miserably multiple times with Traefik and Nginx.

  • SheeEttin@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    edit-2
    1 year ago

    No, you don’t need a reverse proxy. If you’re accessing anything remotely, I highly recommend just setting up a VPN instead of exposing a bunch of different services to the Internet.

    That said, traefik is dead simple. There’s an example for docker-compose here: https://doc.traefik.io/traefik/user-guides/docker-compose/basic-example/

    It’s not completely secure, but I only use it so that I can access my services by name and over HTTPS. I don’t have anything exposed to the Internet.

    • biscuits@lemmy.sdfeu.org
      link
      fedilink
      English
      arrow-up
      10
      ·
      1 year ago

      In my setup I still use reverse proxy even though all of my services are inside a VPN. IMO it is just more convenient to have services accesible as subdomains or subdirectory than as different ports.

      • Lupec@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        edit-2
        1 year ago

        +1 for this, add Tailscale DNS or similar on top plus a local redirect and you have easy access to it all through the same unified FQDN no matter if local, remote through an exposed Caddy, or remote through your VPN.

        • Synapse@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Do you have some guides to share regarding local redirect ? I have some troubles accessing my services from my phone when I am at home and it forces me to turn on the VPN, I couldn’t fine a solution so far…

          • Lupec@lemm.ee
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            1 year ago

            I don’t have a guide at hand but I basically just set a wildcard DNS rewrite on AdGuard Home so that *.my.domain redirects to the IP running my reverse proxy. Since AdGuard is set up at the router level, everything goes through it so the proxy handles everything from there.
            I can share specifics after I get home in a few hours if you need a hand, feel free to reach out.

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 year ago

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

    Fewer Letters More Letters
    DNS Domain Name Service/System
    HTTP Hypertext Transfer Protocol, the Web
    IP Internet Protocol
    SSL Secure Sockets Layer, for transparent encryption
    TLS Transport Layer Security, supersedes SSL
    VPN Virtual Private Network
    nginx Popular HTTP server

    5 acronyms in this thread; the most compressed thread commented on today has 20 acronyms.

    [Thread #43 for this sub, first seen 14th Aug 2023, 17:05] [FAQ] [Full list] [Contact] [Source code]