Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Selfhosted
  3. Why is everyone using Tailscale? Edit: I meant Traefik

Why is everyone using Tailscale? Edit: I meant Traefik

Scheduled Pinned Locked Moved Selfhosted
selfhosted
10 Posts 5 Posters 109 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U This user is from outside of this forum
    U This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #1

    Title. I looked at how to configure anything and found Caddy to be much easier to use. Aside from a lot of docker images integrating with it, why is everyone using it?
    Edit: I meant Traefik

    X undefined@lemmy.hogru.chU K 3 Replies Last reply
    6
    • U [email protected]

      Title. I looked at how to configure anything and found Caddy to be much easier to use. Aside from a lot of docker images integrating with it, why is everyone using it?
      Edit: I meant Traefik

      X This user is from outside of this forum
      X This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #2

      A reverse proxy like Caddy or Nginx is like a bouncer for your web services. It sits out front, deciding who gets in and where they're allowed to go. It's great for stuff you want to expose to the internet – like a website or web app – because it hides your actual servers, can handle HTTPS for you, and lets you set up some basic access rules.

      A VPN is more like a secret underground tunnel between you and your server. Everything that goes through it is locked down to only members of the VPN. This is what you want when you're dealing with private stuff you don't want exposed to the open internet, like your home lab dashboard or some internal tools. The beauty of a VPN is that it works for everything--not just web traffic. SSH, file transfers, databases. All of it gets the same protection.

      irmadlad@lemmy.worldI 1 Reply Last reply
      0
      • X [email protected]

        A reverse proxy like Caddy or Nginx is like a bouncer for your web services. It sits out front, deciding who gets in and where they're allowed to go. It's great for stuff you want to expose to the internet – like a website or web app – because it hides your actual servers, can handle HTTPS for you, and lets you set up some basic access rules.

        A VPN is more like a secret underground tunnel between you and your server. Everything that goes through it is locked down to only members of the VPN. This is what you want when you're dealing with private stuff you don't want exposed to the open internet, like your home lab dashboard or some internal tools. The beauty of a VPN is that it works for everything--not just web traffic. SSH, file transfers, databases. All of it gets the same protection.

        irmadlad@lemmy.worldI This user is from outside of this forum
        irmadlad@lemmy.worldI This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #3

        works for everything–not just web traffic. SSH, file transfers, databases.

        Yup. I use it for sftp, ssh. I've never used in relation to a database. Is that for remote db? I am working on routeing mail through tailscale to a relay, since my host, for whatever reason, blocks mail ports and charges to have them turned on. I just wanted alert emails from a couple apps.

        X 1 Reply Last reply
        0
        • U [email protected]

          Title. I looked at how to configure anything and found Caddy to be much easier to use. Aside from a lot of docker images integrating with it, why is everyone using it?
          Edit: I meant Traefik

          undefined@lemmy.hogru.chU This user is from outside of this forum
          undefined@lemmy.hogru.chU This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #4

          I prefer nginx to Caddy myself for reverse proxies. As far as VPN technologies go, Tailscale and WireGuard are where it’s at.

          Not sure why we’re comparing Caddy to Tailscale though.

          U 1 Reply Last reply
          4
          • irmadlad@lemmy.worldI [email protected]

            works for everything–not just web traffic. SSH, file transfers, databases.

            Yup. I use it for sftp, ssh. I've never used in relation to a database. Is that for remote db? I am working on routeing mail through tailscale to a relay, since my host, for whatever reason, blocks mail ports and charges to have them turned on. I just wanted alert emails from a couple apps.

            X This user is from outside of this forum
            X This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #5

            I am working on routeing mail through tailscale to a relay, since my host, for whatever reason, blocks mail ports and charges to have them turned on.

            Should work fine. Your provider can't stop you from opening ports unless its a shared environment and you don't have permission/the port is already in use. Generally what they do is just block connections via a router/firewall. So if you use a VPN you're sidestepping that issue. With the VPN in place, and the server online and running you should be able to connect via {VPN_IP}:995, etc.

            1 Reply Last reply
            0
            • U [email protected]

              Title. I looked at how to configure anything and found Caddy to be much easier to use. Aside from a lot of docker images integrating with it, why is everyone using it?
              Edit: I meant Traefik

              K This user is from outside of this forum
              K This user is from outside of this forum
              [email protected]
              wrote on last edited by [email protected]
              #6

              I use both, since they do different stuff. I actually remote into my servers with wireguard, but I like to install tailscale as well as a backup. Since each device gets a unique tailnet ip, I can usually still connect even if I've fucked up some network config that breaks wireguard. ((If this is a security risk, someone let me know because I have no clue what I'm doing tbh.))

              Plus tailscale lets you easily see what devices are connected to the internet at a given time.

              1 Reply Last reply
              0
              • undefined@lemmy.hogru.chU [email protected]

                I prefer nginx to Caddy myself for reverse proxies. As far as VPN technologies go, Tailscale and WireGuard are where it’s at.

                Not sure why we’re comparing Caddy to Tailscale though.

                U This user is from outside of this forum
                U This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #7

                I meant Traefik, sorry.

                Also, why Nginx over Caddy? How does a minimal reverese proxy setup look like with Nginx?

                undefined@lemmy.hogru.chU 1 Reply Last reply
                0
                • U [email protected]

                  I meant Traefik, sorry.

                  Also, why Nginx over Caddy? How does a minimal reverese proxy setup look like with Nginx?

                  undefined@lemmy.hogru.chU This user is from outside of this forum
                  undefined@lemmy.hogru.chU This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #8

                  It’s mostly about performance. Caddy’s Go-based garbage collector starts to negatively impact performance at high load. It looks something like:

                  server {
                      listen 443 ssl http2;
                      server_name example.com;
                  
                      ssl_certificate     /etc/nginx/ssl/fullchain.pem;
                      ssl_certificate_key /etc/nginx/ssl/privkey.pem;
                  
                      location / {
                          proxy_pass http://localhost:3000/;
                  
                          proxy_set_header Host $host;
                          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                          proxy_set_header X-Forwarded-Proto $scheme;
                      }
                  }
                  
                  U 1 Reply Last reply
                  0
                  • undefined@lemmy.hogru.chU [email protected]

                    It’s mostly about performance. Caddy’s Go-based garbage collector starts to negatively impact performance at high load. It looks something like:

                    server {
                        listen 443 ssl http2;
                        server_name example.com;
                    
                        ssl_certificate     /etc/nginx/ssl/fullchain.pem;
                        ssl_certificate_key /etc/nginx/ssl/privkey.pem;
                    
                        location / {
                            proxy_pass http://localhost:3000/;
                    
                            proxy_set_header Host $host;
                            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                            proxy_set_header X-Forwarded-Proto $scheme;
                        }
                    }
                    
                    U This user is from outside of this forum
                    U This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #9

                    How do you know which headers to set? I couldn't find any documentation when I last tried (but that was some years ago now).

                    undefined@lemmy.hogru.chU 1 Reply Last reply
                    0
                    • U [email protected]

                      How do you know which headers to set? I couldn't find any documentation when I last tried (but that was some years ago now).

                      undefined@lemmy.hogru.chU This user is from outside of this forum
                      undefined@lemmy.hogru.chU This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #10

                      It can be specific to the web application but generally speaking you’d want to pass the protocol, client IP address, etc.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups