12 ms·
Self-Hosted Homelab Website
- chrisco255 6y agoI haven't self-hosted a website in a long time. Do you still need a static IP in order to do so, or do you have some kind of service that updates the IP? How does it interact with DNS?
- creatornator 6y agoThere are "Dynamic DNS" services with a small daemon you install on your server that continuously update the DNS address so it remains online even if your ISP changes your IP on you. https://account.dyn.com/ https://account.dyn.com/ https://www.noip.com/remote-access https://www.noip.com/remote-access
- seb314 6y agobtw this can be done with a 'proper' domain name too (e.g. at namecheap)
- bananaeater 6y agoyep, I've done this before with a handy tool called ddclient, although there are other tools out there.
- mD5pPxMcS6fVWKE 6y agoIsn't there a small time window during which your site is unaccessible due to DNS propagation time?
- kissgyorgy 6y agoI use Cloudflare for my domains, it has a REST API, I wrote a small Python script which updates the A record for all my domains. My IP addresses change at least monthly, but I never noticed any outage. https://github.com/kissgyorgy/cloudflare-dyndns https://github.com/kissgyorgy/cloudflare-dyndns
- ryanisnan 6y agoAh, but have your users?
- charlieegan3 6y agoI use dynamic dns, a short ttl and have an external check on some services - they ping once a minute and never report downtime.
- ryanisnan 6y agoWow that is pretty impressive!
- mholt 6y agoI'm using a Caddy app I wrote that updates my DNS records, and it works for any DNS provider that has an API: https://github.com/mholt/caddy-dynamicdns/ https://github.com/mholt/caddy-dynamicdns/
- null0pointer 6y agoSomething I want to experiment with is IPv6 DNS. IPv6 has enough address space that individual devices are universally uniquely addressable. With an AAAA record you can point DNS at an IPv6 address. So I want to try setting DNS to point to a specific device... though I haven't gotten around to it yet.
- toast0 6y agoIPv6 DNS certainly works, as long as you're not using ISP provided home equipment that's too stupid to let you allow incoming connections on IPv6; but only if you always have IPv6 access where you want to access the things from. IPv6 on public WiFi or corporate networks isn't a given, and where I live, neither is cell coverage, so I wouldn't want IPv6 only for important services.
- LeoPanthera 6y agoI wanted to try this too, but my Comcast IPv6 prefix is unstable, and keeps changing. It makes it difficult to even use IPv6 internally, because the LAN tracks the prefix, so addresses keep changing.
- jlgaddis 6y agoIf you aren't already aware, you probably want to use Network Prefix Translation (NPT) with Comcast.
- LeoPanthera 6y agoI've been told that, and my router is pfSense, which claims that it is possible, but the documentation says something along the lines of "You can use NPT!" and then doesn't explain HOW. I haven't figured it out yet.
- pak9rabid 6y agoI do mine with a dynamic IP. I use DynDNS (with the ddclient daemon running on my Linux router to update records when my IP changes). It hasn't failed me yet.
- Cerium 6y agoIn my experience the only time Att or Comcast change your IP is when there is a power outage. I have had to manually update the DNS record for my home computer only once in the last 3 years.
- 13415 6y agoI'm using a cron job to update A records for my domain at Namecheap, they have an API for updating IPv4.
- galacticdessert 6y agoWell, I have a small living room server/home lab as well, but it's a 12 years old MacBook pro running Debian. I love the idea of having my own server where to run small personal projects, have some daemons running in the background and use it as a NAS, but I cannot justify any investment for it. Scrape parts or nothing.
- pnutjam 6y agoI run everything on an old Dell desktop with a i7-2600 CPU and 8GB of RAM. I just run OpenSUSE and use it as a NAS(samba), remote desktop (x2go), pihole server, torrent host, etc..
- VBprogrammer 6y agoI feel like I've missed a meme. What exactly is a homelab?
- megraf 6y agoAssuming you're not trolling, here's a decent intro: https://www.reddit.com/r/homelab/wiki/introduction https://www.reddit.com/r/homelab/wiki/introduction
- VBprogrammer 6y agoNot trolling, I had no idea. Obviously I got it was basically a home server setup but I couldn't see where the term came from.
- hanniabu 6y agoIf it helps you feel any better, I've never heard of it before either
- OJFord 6y agoI don't know where it comes from, but the distinction's basically 'when a home server becomes home servers', or at least becomes a hobby, as opposed to just setting up and forgetting a Pi-hole once or something.
- detaro 6y agoOriginally, a "home lab" is specifically for learning and testing, primarily for professional reasons: i.e. someone going for a Cisco networking certification might get a stack of old Cisco routers and build test environments with them, someone learning windows networks might setup a windows domain on multiple PCs, ... It's kind of morphed and people fold their home "production" environments into the term too.
- megraf 6y agoIt's in the above link: Homelab [hom-læb](n): a laboratory of (usually slightly outdated) awesome in the domicile
- w84death 6y agoI have that for a long time :) mine: http://194.126.207.20/ http://194.126.207.20/
- deleted 6y ago[deleted]
- ColanR 6y agoSo if you're doing the Digial Nomad thing, where do you stash the server?
- w84death 6y agoI have my base in Poland. And those times I'm less of a nomad due to many things including some virus in the air.
- themodelplumber 6y agoRight on. :) I like your use of video at https://cyfrowynomada.eu/ https://cyfrowynomada.eu/
- w84death 6y agoThanks! I found this trick to make vimeo videos "seamless" just as gifs back in the days. It's surprisingly not distracting yet super vivid :)
- deleted 6y ago[deleted]
- quaintdev 6y agoI have simple note server[1] running on raspberry pi. I want it to be accessible from Internet but my ISP uses double NAT and theirs no other way around it. :/ [1] : https://github.com/quaintdev/pinotes https://github.com/quaintdev/pinotes
- 0xCMP 6y agoTailscale or Zerotier are good ways around that. Or setting up a really cheap server (e.g. I like RamNode) as a central VPN point.
- deleted 6y ago[deleted]
- kingosticks 6y agoLike the other poster says, I have cheap vps which I connect to from my home machine using wireguard. The vps instance forwards Internet requests down the wireguard tunnel to my machine.
- whalesalad 6y agoSweet! Here's my homelab - https://i.imgur.com/QS0o4ni.jpg https://i.imgur.com/QS0o4ni.jpg - I should self host an about page, too. - Netgear Cable modem - Edgerouter ER4 - 8-port POE Edgeswitch, powers the nanoHD AP in my hallway and acts as the backbone of the network. - Raspberry Pi 3 as a dedicated pihole DNS server - TPLink 16 port switch serves all the 'lab' gear. - 2x R720's. One is off, the other is a VMWare ESXi host. - ESXi is pretty light at the moment - running Unifi controller and a dedicated VM that just runs Elasticsearch for a side project. For a while I was heavily using it to simulate an AD deployment for a small business. - Synology DS918 is a network drive and network time machine backup destination. It backs itself up to Backblaze nightly. - Everything is on a simple Cyberpower 1500VA UPS. I can run everything for about 80 minutes without power, but if I shut down the R720 the runway gets much longer. I got my start in about 2003-2004 by trying to run my own mini ISP out of my home during High School. I was doing everything over a residential DSL connection that only got 1.5mbit down and a fraction of that for upload. I still remember asking my bud to help me 'test my mail server' which was a Qmail installation via the Qmail rocks guide. The machine was a Pentium 3 with 128mb of RAM. My bud Anand (Founder of Gyrosco.pe) sent a handful of test emails to it and brought it to its knees! Absolutely hilarious incident at the time. I wish that I had more photos of that time in my life.
- ashitlerferad 6y agoThat is sweet! Yes cyberpower ups are really great. I regret not going 1500va as well.
- lostlogin 6y ago> Synology DS918 This might be the best machine I’ve ever owned. It’s rock solid, a great Docker introduction and runs a load of small tasks without issue or intervention for a year+ so far.
- aspenmayer 6y agoI’ve been really happy with the DS1618+ we have at work as as well. I especially like that you can use the full size drive bays with SATA SSDs as cache drives. Some other products (Drobo for example) only let you mount cache drives on connectors for that explicit function or purpose. Anyone know offhand if this year is getting a refresh to the 1618+? I think that Synology has a tick-tock upgrade cadence with consumer product lines getting upgrades in year x, and enterprise products get upgrades in year x+1.
- DictumMortuum 6y agoNice! I have a raspberry 2b+ with several services: ldap, syncthing, gitea, cups server, minidlna, torrent server, NFS, nginx for PHP stuff like phpldapadmin, phpmyadmin, nextcloud, etc. I realized that I don't need a public IP. I set up zerotier on all my machines and pointed a subdomain that I own to that IP. OK, other people can't visit it, but I rarely need them to. It's perfect, but nextcloud is slow :( Maybe an upgrade to rpi 4 will help it be faster.
- jjice 6y agoIf you wanted it to be publicly accessible in the future, I think you can rent a cheap VPS (DO Droplet) and set up a VPN, and then connect to that VPN on your Pi. Then you can have Nginx on the VPS and reverse proxy to any services you'd like.
- DictumMortuum 6y agoI've been monitoring what VPSs are an option. I'd like to have something faster, because it'll be cost-effective, but I don't want another headache.
- deleted 6y ago[deleted]
- bananaeater 6y agoThey could also try dynamic DNS. I've had success with using ddclient with a personal (sub)domain with NameCheap.
- enneff 6y agoIf they're going to spin up a VPS then they might as well decommission the Raspberry Pi, before it decommissions itself. :-)
- DictumMortuum 6y agoWell, most of the services do not even have a noticeable lag, but nextcloud is taxing!
- nojito 6y agoNo mention of electricity costs and/or usage.
- LennyWhiteJr 6y ago$10k in hardware + $150/month electric + a noisy/hot room :)
- cchance 6y agona dont think its that expensive at all, and most of those items are pretty silent/cool hes not running big dell r713s
- didip 6y agoI didn't see your storage solution. Do you just backup everything on S3? or do you have a SAN, not listed here?
- awinder 6y agoI went down the edgerouter path (edgerouter x sfp) and have regrets, in case others get ideas (or if someone has fixes, I'm all ears). Don't get me wrong, the device works great, I was entertained by it running vyatta which I had experience with at the time, and I just got https://github.com/nextdns/nextdns https://github.com/nextdns/nextdns running on it which is super awesome. But I have a bunch of devices connecting to wifi, which seems to work waaay better integrated with the unifi line of products. I'm probably going to swap it out one of these days, and I can make due with running the controller on a 24/7 box to smooth it out a bit, but I'd totally go unifi down the line if I had to do over.
- zrail 6y agoI tried to start with an edgerouter and a Unifi AP and quickly switched to an all-Unifi setup. I recently switched from a cloud key to running the controller on a $5/mo Digitalocean VM when the UCK died for whatever reason. I’m not sure about how ultimately reliable it’ll be but I like it fine. The remote adopt function in the iOS app is extremely slick.
- zeeg 6y agoLooks awesome! I went down the homelab-ish rabbit hole recently myself and it was probably the most fun I've had in a long time on a project. My goals were more about hosting a bunch of IoT stuff internally (sensors, cameras, etc), but I wrote up a bit about at least the rack/equipment here: http://cra.mr/my-journey-into-home-automation/ http://cra.mr/my-journey-into-home-automation/ At some point, I'm hoping to dive a bit deeper on the software side, which was also super fun.
- Constant-fly34 6y agoAwesome! Love it.
- distracted_boy 6y agoIs your server that is running the website, running in a segmented network? Meaning, it's not on the same network as your other internal devices.
- deleted 6y ago[deleted]
- ih8spam 6y ago====================================================== Please don't dignify this post with responses. This guy is spamming his site all over Reddit and other forums. This sort of behaviour should be downvoted and discouraged, no matter if the content is relevant. ======================================================
- floren 6y agoA photo followed by a dozen Amazon referral links kind of rubs me the wrong way, even if I appreciate a nicely put-together setup like that.
- pak9rabid 6y agoWhy? Don't like the convenience of knowing where to source stuff?
- themodelplumber 6y agoNot sure if I agree. It doesn't cost you any extra to use those links when you're shopping for gear (last I checked), it's a creative and unusual setup to see in someone's house these days, the photo delivers a good amount of impression, and the resulting website is just nice to look at. On top of that, he did go to the trouble to list all of the gear, which there's a good chance won't even be remotely paid for by the affiliation. Yeah, the more I think about this, to me I think this counts as supporting the community.
- deleted 6y ago[deleted]
- henryfjordan 6y agoThe link about "full details" is probably what you're looking for: https://haydenjames.io/home-lab-beginners-guide-hardware/ https://haydenjames.io/home-lab-beginners-guide-hardware/
- deleted 6y ago[deleted]
- pak9rabid 6y agoDamn that's clean. I think you've inspired me to clean up my home lab rat's nest.
- lostlogin 6y agoThe sub https://www.reddit.com/r/homelab/ https://www.reddit.com/r/homelab/ is worth a look for inspiration. It has some great posts and threads.
- designium 6y agoThe cables are very well organized.
- wishinghand 6y agoAre the 1 unit blanks for cooling reasons?
- jerrysievert 6y agoI have my own (not nearly as sophisticated) home lab, with an old self-built desktop acting as a kvm host. while it's not as pretty, the biggest win for me was to move all of the vm disks onto a Synology that I'm mounting via iscsi. it tends to work really well.
- dvfjsdhgfv 6y agoHow do you deal with the noise?
- ransom1538 6y agoIf people are showing off a lab. My lab always sparks a conversation. I wanted to prove I could beat twilio's texting rates. https://i.imgur.com/gKknrJn.jpg https://i.imgur.com/gKknrJn.jpg
- SparkyMcUnicorn 6y agoCare to share more details? Interested in the software stack, and what you use it all for. This is really intriguing. I'm currently running a SFF machine as a server, and thought about adding some Pi devices to play around with a local kubernetes cluster.
- ransom1538 6y agoIt was a fun project - but I wouldn't use old cellphones. Having these old cellphones plugged in all day - basically just made the batteries enlarge and broke the casing. But you can get old android phones for nothing -- even cheaper than a raspberry pi.
- deleted 6y ago[deleted]
- calibas 6y agoI was impressed by the performance, especially with ExpressJS, and started digging deeper until I noticed "cf-cache-status: HIT". What I'm seeing is not really a "self-hosted website", but a Cloudflare-hosted cache of a self-hosted website. Edit: I wanted to get an idea of the "real" performance, so I went to a non-existent page so the cache would miss. I waited 930ms for a 301, then another 590ms for the 404 page.
- ashitlerferad 6y agoOf course it's using cdn/Cloudflare. I live in the Caribbean. Good thing it was! A topic such as Home Lab will see traffic from all over globally. No cdn would be terrible idea. Not sure of you are located but Pingdom test for 404 does not match your claim: https://tools.pingdom.com/#5ca8d73c1e400000 https://tools.pingdom.com/#5ca8d73c1e400000 And of course 404 pages will be slower. Because Cloudflare still has to receive the request first, then check origin server roundtrip before responding. The site is just a hobby page and the only thing public facing that I self hosted. Even my main blog which is hosted in North America uses full-page-cache CDN courtesy Bunnycdn.
- calibas 6y agoI understand the need for Cloudflare in this case, I just didn't realize it was being used at first and got rather excited about the prospects of self-hosting. I don't mean to insult, I just got a false impression and wanted to make sure people here knew that the resources aren't really being served by your server, at least in most cases. I just ran that Pingdom test again, 938ms for the 301 and 3861ms on the 404 on a missed cache. Now that it's in the cache, everything loads in less than 247ms.
- ashitlerferad 6y agoNo worries. I understand what you mean. I have not seen high response times (3 secs u report on first request) for 404s yet via Pingdom but then again the site has only 3 or 4 pages so not worried about 404 performance. Thanks!
- deleted 6y ago[deleted]