0spkl

joined 1 year ago
 
[–] 0spkl@kbin.social 2 points 1 year ago

You could use apache2 vhosts to route bitwarden.domain2.com traffic to wherever the heck you want. Even to another server on the internet.

Think of a vhost as uh... another set of apache server configuration that ONLY applies if the incoming traffic is for that domain/hostname.
That's determined by the Host header in the request, or the TLS SNI value if you're using HTTPS.

Then in that vhost, you'd just configure it like you would any apache instance, like say, for the root location, have it do a proxy_pass, etc.

[–] 0spkl@kbin.social 4 points 1 year ago* (last edited 1 year ago) (1 children)

I feel like I'm missing some EASY thing; like can't my apache2 just route the bitwarden.domain1.com traffic to another local IP address...

Yes. It can. https://httpd.apache.org/docs/2.4/vhosts/name-based.html

[–] 0spkl@kbin.social 2 points 1 year ago* (last edited 1 year ago) (2 children)

I mean, if you already have nginx OR apache, you could set up a vhost with the other domain name and do a proxy_pass or similar thing to the other one?

They don't need to be the same host software, you'd just need to configure one of them to know how to route it to the other instance. It's just plain HTTP(s) after all.

Reverse proxying is a feature in both nginx and apache after all. Though I'd recommend using nginx for that.

[–] 0spkl@kbin.social 3 points 1 year ago (1 children)

I mean, yeah. That is true, a GUI would be easier for someone to learn. But once you do, config files are way faster.

Honestly, I first moved to traefik (from caddy) because it let me put my proxy configuration next to the application it's for. (When I was using docker-compose files to manage this.)

[–] 0spkl@kbin.social 6 points 1 year ago (4 children)

If you're going to be jumping straight into text based config files.... Caddy's Caddyfile format is a lot easier to work with then nginx configs IMO.

[–] 0spkl@kbin.social 8 points 1 year ago* (last edited 1 year ago)

Cloudflare tunnel free is pretty good, and I use it for my on-prem (in house) services because it can work through CGNAT, though you are subject to the standard cloudflare terms of use.

On the other hand, what you're looking for is called a reverse proxy. I'd recommend Caddy or Nginx Proxy Manager for you.

I personally use Traefik, but I'm also running on a kubernetes cluster so....

[–] 0spkl@kbin.social 1 points 1 year ago

I think vultr is actually cheaper then DO though.

[–] 0spkl@kbin.social 1 points 1 year ago

I've moved to technitium DNS nowadays. I found that it works better for me then AGH.

[–] 0spkl@kbin.social 2 points 1 year ago (1 children)

Actually. Now that I think of it, I should probably diagram that out hmm. Anyone know any good tools for making that?

[–] 0spkl@kbin.social 2 points 1 year ago (1 children)

And seriously, Talos Linux is really, really, nice. If I ever manage to mess up a kubernetes node (which has happened a few times when I was messing around), I just wipe it, reboot it from the ISO, and reprovision it with the machine configuration.

[–] 0spkl@kbin.social 3 points 1 year ago (5 children)
  • 3 used MSFF PCs (i5, kingston SSDs, 24GB of ram each). All running proxmox, set up as a cluster.
  • 1x Raspberry Pi 4 8GB. Running ubuntu.
  • 1x Vultr 2vCPU/4GB RAM instance.

I've got a small kubernetes cluster set up using Talos with 3 controlplane / 3 workers in VMs on the proxmox nodes. The vultr node is also running Talos and attached to the same cluster. Their KubeSpan feature is pretty neat, automatic full mesh wireguard between all cluster nodes.
Traffic inside the cluster flows seamlessly between all nodes, and I can even use it as sort of a proxy server using Cilium's Egress Gateway function.

Meanwhile my Pi4 is running k3s, to host a few services needed to operate the main cluster, such as the Harbor registry operating as a cache and a zigbee2mqtt instance because I have a raspbee2 for a zigbee adapter.

The main reason I'm using K3S even on the single node Pi is because I very much like using flux to manage the deployments on the servers.

Network wise, I've got a USG-3P, one of the newer compact 16 port POE switch. And a pair of UAP-AC-LITE for APs.
Maybe one day I'll get around to switching the USG for something a little more capable. And maybe capable of doing IPS/IDS on my 500M/100M internet connection. But no idea what kind of specs I'd need for that.

Would also like a NAS but... eh.. Maybe I'll just see if i can add more storage to the proxmox nodes and expand the ceph cluster or something.

view more: next ›