TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Host a website from a living room in 2022?

135 pointsby tomekwover 2 years ago
As in title. Is Raspberry Pi a viable option (SD card?!)? Should I get an Intel NUC? Fanless would be really, really nice.<p>Thank you!<p>EDIT: OK, a web app, not a website, the service is not critical (it&#x27;s my side project, 5yearsback.com), I&#x27;m 100% technical, the app is in Clojure, but I plan to deploy Zig services as well<p>EDIT2: I&#x27;ve a static IP.

60 comments

ociusover 2 years ago
I can recommend the Rasperry Pi for self-hosting, if you pick one of the more recent models with more RAM (3 or 4 with 4GB of RAM at least). You just need to keep in mind that the availability of your website is not quite as good as if you were hosting in a datacenter.<p>Regarding security: you might want to have a look at cloudflared. This is a (free for small projects) service by Cloudflare where your server (Raspberry Pi) connects to cloudflare, and all HTTP traffic is proxied through Cloudflare. This has multiple advantages:<p>- you don&#x27;t need to open a port on your router that forwards to your Pi, which is good for security and simplicity (some routers don&#x27;t even have this option)<p>- you get all the cloudflare protection with the click of a button, including HTTPS with automatic Cloudflare certificates, DDoS protection, etc<p>- you don&#x27;t need DynDNS to point to your dynamically changing IP
评论 #34066158 未加载
评论 #34066188 未加载
评论 #34067236 未加载
评论 #34065631 未加载
评论 #34065689 未加载
achairapartover 2 years ago
Yes, a Raspberry is a viable option. These days I do most of my computing on a Raspberry Pi 4 attached to my home router:<p><a href="https:&#x2F;&#x2F;fatcity.it&#x2F;" rel="nofollow">https:&#x2F;&#x2F;fatcity.it&#x2F;</a><p>One thing you really need is an SSD, though. I use a cheap Kingston, it works great but you must pay attention to the right USB-&gt;SATA adapter, picking one that&#x27;s fully compatible with UAS drivers. For booting directly from the SSD with Ubuntu there is this useful guide:<p><a href="https:&#x2F;&#x2F;jamesachambers.com&#x2F;raspberry-pi-4-ubuntu-20-04-usb-mass-storage-boot-guide&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jamesachambers.com&#x2F;raspberry-pi-4-ubuntu-20-04-usb-m...</a><p>Performance wise, this little computer runs mostly like a common VPS, I think on par with a droplet from Digital Ocean, for example. Here some benchmarks:<p><a href="https:&#x2F;&#x2F;pibenchmarks.com&#x2F;benchmark&#x2F;62022&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pibenchmarks.com&#x2F;benchmark&#x2F;62022&#x2F;</a><p>If you don&#x27;t want to share your IP, a Cloudflare tunnel is a great alternative:<p><a href="https:&#x2F;&#x2F;developers.cloudflare.com&#x2F;cloudflare-one&#x2F;connections&#x2F;connect-apps&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developers.cloudflare.com&#x2F;cloudflare-one&#x2F;connections...</a><p>Also, another essential tool is Tailscale, with it I can access my home server from basically everywhere just like a LAN connected device: <a href="https:&#x2F;&#x2F;tailscale.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;tailscale.com&#x2F;</a><p>PS: You can also do your own tunnelling with OSS alternatives, if you have enough patience&#x2F;time.<p>Anyway, feel free to ask anything.
评论 #34068517 未加载
l72over 2 years ago
I have a fitlet2(<a href="https:&#x2F;&#x2F;fit-iot.com&#x2F;web&#x2F;products&#x2F;fitlet2&#x2F;" rel="nofollow">https:&#x2F;&#x2F;fit-iot.com&#x2F;web&#x2F;products&#x2F;fitlet2&#x2F;</a>) that I use for hosting various services. It is fanless, 16G of RAM and 500G SSD. This is my NAS, and I am currently running:<p>- Jellyfin - Media Server for all my tv, music, and movies<p>- Nextcloud<p>- Photoprism - Picture Manager<p>- Yacy - Private Search. I run this in &#x27;robinson mode&#x27; and basically use it to replace all my bookmarks<p>- Homeassisant<p>- Frigate - Monitors my cameras and does object recognition. I use Coral USB to move detection to hardware<p>- Snapdrop - AirDrop replacement<p>- FreshRSS - RSS Server<p>- Bitwarden - (bitwarden_rs&#x2F;vaultwarden)<p>- Imapfilter - Filter&#x2F;tag&#x2F;run external software on incoming emails<p>- Vikunja - Task Manager<p>- Dolibarr - ERP Manager for side business<p>- Bookstack - Wiki<p>- Several Static Websites<p>- NFS (as a NAS)<p>Frigate takes the most CPU, even with the Coral, but it is doing object detection on several high-res Remote Cameras. Even with that, my load is &lt; 1.<p>I run all these in docker (each that needs a DB has its own DB instance too), with nginx-proxy and letsencrypt-nginx-proxy-companion in front of it.<p>Most of these are internal only (I use the access=internal), and have an always connected wireguard VPN on my mobile devices and laptops. A few are public, but pretty low traffic.<p>I have a static IP, and am running this on DSL that is 30M&#x2F;7.5M. My router is a netgear with DD-WRT installed.
评论 #34066706 未加载
评论 #34067846 未加载
评论 #34070079 未加载
评论 #34074680 未加载
mikedelagoover 2 years ago
There&#x27;s a few ways.<p>Already have an old pc hanging out somewhere? Good - don&#x27;t buy anything new. Run the HTTP services from there and set up port forwards in your router, and DNS with your domain registrar (or set up cloudflared as other commenters noted). You&#x27;re done.<p>Step further, you can go with a RasPi or a similar SBC, but just be aware running with ARM can have its&#x27; own challenges.<p>I&#x27;d recommend a cheap x86_64 machine from ebay, such as an HP t730 plus thin client. Native SSD support, higher&#x2F;upgradeable ram capacity, and better IO would all come together to make a better server machine. The RasPi would win out on a few points (power draw, memory speed), but in this scale it likely wouldn&#x27;t be noticeable.<p>Lastly - don&#x27;t be afraid of cloud services. A GCE&#x2F;EC2&#x2F;vultr&#x2F;hetzner server can get you pretty dang far for just a few bucks a month. Also, this makes it easy to get some exposure to infrastructure provisioning tooling (I prefer Terraform and Terragrunt) and server configuration management tooling (I prefer ansible).
Semaphorover 2 years ago
There are a lot of suggestions already, so I’ll just mention two useful communities: <a href="https:&#x2F;&#x2F;reddit.com&#x2F;r&#x2F;selfhosted&#x2F;" rel="nofollow">https:&#x2F;&#x2F;reddit.com&#x2F;r&#x2F;selfhosted&#x2F;</a> &amp; <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;HomeServer&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;HomeServer&#x2F;</a>
rakooover 2 years ago
I would go for a secondhand old laptop. Not only will it prolong its life instead of pollution by buying even more new machines, you have integrated screen and keyboard for debugging <i>and</i> a battery acting as a cheap UPS. Parts are easily found. x86, so no funny business with experimental builds.
评论 #34066586 未加载
评论 #34066896 未加载
评论 #34069919 未加载
评论 #34069849 未加载
ectosphenoover 2 years ago
Get a cheap vps. Set it up as a wireguard server. Stick a barebones haproxy on it. Run it in tcp mode pointing at a wireguard client ip for the backend.<p>Pick some machine in your house. Make it a wireguard client connecting to the vps. Run whatever web server&#x2F;app you want. Make sure your home router is running something like fq_codel.<p>Done. You don&#x27;t need dynamic dns as your home client will just reconnect. Your ISP won&#x27;t see any ports open because there aren&#x27;t any. Your SSL certs and all data live in your house, not on the vps. There is nothing to backup at the vps except for yanking some logs.
评论 #34073042 未加载
renaissance_teaover 2 years ago
Is it public? If you host a high traffic site from residential ISP connection, your account could get banned.<p>Regardless, I would host an NGINX proxy in front of some docker containers. It’s the easiest and classic way to front apps with custom domains very very easily. Traefik is also very nice and fast (Go based) reverse proxy.<p>If it’s purely for personal use, then check Cloudflared to tunnel into your network and access it like a VPN.<p>Again, if it’s Public be weary of DDOS attacks, port scans, etc. Personally I wouldn’t self-host a public web app from my house and instead would use a 4&#x2F;mo VPS from Hetzner
评论 #34065983 未加载
whalesaladover 2 years ago
An alternative to relying on your static IP (and all that comes with it, like needing a strong firewall and awareness&#x2F;monitoring of activity there) would be to use the Cloudflared proxy&#x2F;tunnel. <a href="https:&#x2F;&#x2F;github.com&#x2F;cloudflare&#x2F;cloudflared">https:&#x2F;&#x2F;github.com&#x2F;cloudflare&#x2F;cloudflared</a>
cramjabsynover 2 years ago
Get a cheap USFF (ultra small form factor) PC. Its essentially laptop components in a small headless box. For the going price of a rpi 4 you could have an i5 or i7 with 8-16G ram and a proper SSD
评论 #34072970 未加载
newaccount74over 2 years ago
I think the best home server is the 2014 Mac Mini because:<p>1) internal HDD can be replaced with cheap, big SSD<p>2) Computer is absolutely silent<p>3) everything in one package, no mess of cables<p>4) very reliable<p>5) very low power usage<p>MacOS isn&#x27;t the best OS for running a server, but I&#x27;m used to it so I don&#x27;t mind setting up launch agents instead of systemd units
评论 #34065857 未加载
评论 #34068967 未加载
anaganiskover 2 years ago
Go with an intel NUC i literally wrote a script to alert me on raspi stocks and luckily found 4 of them 8Gb versions. Used intel NUC (I bought a beelink one which is so quiet) for much cheaper $130, and actually runs pfSense now. My dell 7080 bought used for $160 consumes like 5$ worth power in weeks and has 32GB of ram. Raspberry Pi is purely good for prototyping, or if you have any use for GPIOs. Else, the above options are far better for cheaper.
user432678over 2 years ago
Had the same question a year ago, researched quite a few options. Ended up buying used micro server (Fujitsu Primergy 120 S3) for around £30. Then upgraded it with low power 8 core Xeon and slowly maxed out it’s RAM. Currently it runs Proxmox with a dozen of LXC containers, Go&#x2F;Node.js web apps and static websites using Caddy, mostly for home usage, only a few exposed to the internet using free Cloudflared tunnels. It also has a few VMs with k8s cluster just for the experiments. Overall I am very happy with this small setup, as a frontend developer transitioning into backend development it helped me significantly to improve my skills. I also sleep well as I don’t need to worry about spinning up quite expensive AWS services incorrectly and taking a mortgage after just to cover my learning mistakes. The only downside, though is that now you need to setup backup and pay for the electricity a little bit more than what Raspberry Pi will cost. But it’s still much much less than the price of around 20 VPSs you might buy at Vultr or Digital Ocean per month.
评论 #34083438 未加载
abadger9over 2 years ago
Coincidentally, I was thinking about this about a week ago. If you look at my post history my career traces a pre-ipo FAANG where everyone knew how to spin up a service and connect it to the internet (think bootstrapping 101). I had a thought experiment last week where if I were to ask this to new grads entering FAANGs, the majority of them probably would not be able to elucidate the steps required.
评论 #34078735 未加载
rsolvaover 2 years ago
I host personal and semi-commerical websites&#x2F;apps from home on a 500&#x2F;500 fiber connection. The hardware is an older HP G1 800 SFF, which you can buy refurbished for ~€150, much more bang for your bucks than a Pi. Proxmox makes it possible to host many webservers and services on LXC containers. But of course, a Pi would work too :)<p>I have choosen to treat IPv6 as the default stack as I can point directly to the address from outside without any NAT. A reverse proxy handles all &quot;legacy&quot; IPv4 requests. My IPs do change once in a while, but I have made a little bash script that updates the DNS via my domain registrars API, works like a charm!
Nicanover 2 years ago
I just have an old Dell computer [1]. They are pretty small, quiet, has an SSD, and I do not need to fiddle in having everything compiled for Arm.<p>I would also put your app behind CloudFlare.<p>Also- if you are able to afford an intel NUC ($200?), and the app is low resources enough to be able to run on a Pi. You could also consider getting a VPS ($10&#x2F;month).<p>[1] Something like <a href="https:&#x2F;&#x2F;www.newegg.com&#x2F;dell-optiplex-7090-business-desktops-workstations&#x2F;p&#x2F;1VK-0001-60GC6" rel="nofollow">https:&#x2F;&#x2F;www.newegg.com&#x2F;dell-optiplex-7090-business-desktops-...</a> - but older, and found on a local recycling center.
WJWover 2 years ago
A pi is a viable solution up to at least a few thousand visitors a day, depending on how spread out they are. You will need to find a way to give your pi&#x2F;NUC a static IP address though. Many ISPs will give you a static IP, then you can simply set up port forwarding for port 80&#x2F;443 on your router and be off. If not, ngrok or a similar service can work as well.<p>That said, unless you have an ideological reason for hosting it from your own home there are many platforms out there that can comfortably fit most non-critical webapps in their free tier with even less hassle than setting up a pi.
评论 #34065850 未加载
bibeloover 2 years ago
Think about security on your home network. If your publicly accessible webserver gets compromised, it can be used to reach your personal computers at home.<p>Or the other way round, which IMO would not be so serious (ie your already compromised personal computer being used to access your public webserver...)<p>You could try to isolate your webserver, but would need a dedicated router with specific features to do it (best being able to do VLANs).
评论 #34070737 未加载
johnklosover 2 years ago
Pi devices are more than capable of running web sites and web apps. I&#x27;m running a somewhat busy SearXNG instance on a Pi 4, for instance. Just get self-powered USB attached storage and a Flirc case, and it can be completely fanless (so long as the storage is fanless), and you don&#x27;t have to worry about your SD card wearing out.<p>Even if you don&#x27;t get storage with its own power supply, you can use a &quot;Y&quot; USB cable for extra power, provided the same power source is used for the Pi and for the storage. This can have the added benefit of backfeeding power to the Pi, which, again, is fine so long as the power sources are the same.<p>While my Pi 4 is colocated, it has a Flirc case so it can run all four cores at 100% without ever having thermal issues, and the two USB attached disks are mirrored (raidframe), and it has been 100% stable for many, many months of heavy use.
tyingqover 2 years ago
The Odroid H3 looks nice if you want x86_64, fanless, and reasonable pricing for that. Probably overkill for hosting a website, but perhaps you want to do more later.<p><a href="https:&#x2F;&#x2F;www.hardkernel.com&#x2F;shop&#x2F;odroid-h3&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.hardkernel.com&#x2F;shop&#x2F;odroid-h3&#x2F;</a>
sokoloffover 2 years ago
&quot;How thick does my rope need to be?&quot;<p>I serve a website for my 3D printers from a Raspberry Pi (some are 3B+, some are Zero-W). It&#x27;s just for &quot;the set of people in the house who use the 3D printers&quot;, so the Pi is fine and obviously a viable candidate.<p>I have an ESP32 (or it might be an ESP8266 even; I&#x27;d have to look) that serves a status page for the boiler and near-boiler temps. That&#x27;s also in-house only, but even that&#x27;s on the slow side. <a href="https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;JmeXYnj" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;JmeXYnj</a><p>What is the load this site is expected to serve? To what visitors? How static&#x2F;cacheable is it? For me, an RPi goes a long way for anything in-house. Out of the house traffic, I&#x27;d look at a cheap VPS pretty early in the journey.
pflanzeover 2 years ago
A drawback of the Pi 4 is that if you want to do RAID with USB hard drives, I found that you need a separate powered USB hub for each disk. That&#x27;s (A) to give them enough power (although I used spinning disks, it may or may not be necessary for SSDs), and (B) I found that when I had them on the same hub or on the Pi directly, when one disk went down, it would lead to the other disk becoming inaccessible as well. It seems with separate hubs, that&#x27;s not an issue. (Don&#x27;t ask me about the technical details why that might be so, if you know more and can explain that I&#x27;m wrong, go for it, it was simply the result of my experiments (with an n of 2 or 3 or so), and does make sense in that there&#x27;s more electronics between the drives to shield, and it&#x27;s indirectly addressed so maybe the kernel is less confused, whatever.)<p>My current setup with two hubs has been working reliably so far, but in spite of it all being USB3 it&#x27;s still not that fast (about 100MB&#x2F;s serially top--I&#x27;d hope that the 3.25&#x27;&#x27; disk drives (new 4 TB drives, WD Elements 2620 and Seagate Basic STJL4000400) could do more, but maybe I&#x27;m wrong). So for my next tiny servers &#x2F; appliances, I want to try either of the following instead, which have SATA which should be more reliable and faster:<p><a href="https:&#x2F;&#x2F;www.pcengines.ch&#x2F;newshop.php?c=48881" rel="nofollow">https:&#x2F;&#x2F;www.pcengines.ch&#x2F;newshop.php?c=48881</a><p><a href="https:&#x2F;&#x2F;www.olimex.com&#x2F;Products&#x2F;OLinuXino&#x2F;Home-Server&#x2F;LIME2-SERVER-NO-HDD&#x2F;open-source-hardware" rel="nofollow">https:&#x2F;&#x2F;www.olimex.com&#x2F;Products&#x2F;OLinuXino&#x2F;Home-Server&#x2F;LIME2-...</a><p>Also, since Pi 4&#x27;s are unobtainable here (Switzerland) currently: the Tinker Board 2 seems to be a bit faster than the Pi 4, and it has its wifi board as a plug in board, and I have been wondering if that can be replaced with a SATA interface, but haven&#x27;t investigated.<p>Edit: seeing achairapart&#x27;s comment, I realize that going directly from USB to SATA and then attaching disks there might have been a better option.
opanover 2 years ago
You can use a RockPro64 and set up USB boot to avoid the headache of SD cards.<p><a href="https:&#x2F;&#x2F;wiki.pine64.org&#x2F;wiki&#x2F;ROCKPro64#Booting_from_USB_or_PXE" rel="nofollow">https:&#x2F;&#x2F;wiki.pine64.org&#x2F;wiki&#x2F;ROCKPro64#Booting_from_USB_or_P...</a>
dustedover 2 years ago
My server is literally 2 meters behind me (yes, I mind the noise, don&#x27;t cohabitate with full depth 4u machines, on the other hand it does help with heating this winter..)--<p>Static IP is most difficult, if you got that, you&#x27;re good to go... If your website or app is light enough, sure, go with a pi4 or similar, don&#x27;t put a fan on it, maybe a nice enough heatsink (use real thermal glue, NOT adhesive tape, some of the cheaper stuff actually melts and the block falls off).. Consider a 3 way router, like an edgerouter lite, so you can have a DMZ for the &quot;server&quot; so that if someone decides to visit, they&#x27;re isolated from your other LAN machines.
bakugoover 2 years ago
Depends entirely on how much power you need. Pi is fine if you don&#x27;t need much, NUC is good if you need something more and, from my experience, can run comfortably with the fans off if you don&#x27;t mind capping the CPU frequency a bit.
zeglover 2 years ago
I don&#x27;t know how experienced you are. Yes, you can host &quot;a website&quot; on a Raspberry Pi, even on something tiny like the Zero W. It all depends on your needs, a Pi 4 (if you can get a hold of one) is a great option!
notakioover 2 years ago
I&#x27;ve used the Pi (both a 3 and 4) as a temporary server when moving (read: leave the old server up at home until move-day, while placing a Pi in the new home, configured to take the www load normally pointed at my old server. I&#x27;m hosting 14 sites from home, none of which are high traffic, but under those circumstances, the Pi held up just fine. Once move-day comes, I&#x27;d make the DNS change to point at the new Pi, pack my stuff, move, then reverse that process once I&#x27;ve brought the old server back online.<p>I&#x27;d say unless your web app is resource-hungry, the Pi is totally viable as an option.
Stranger43over 2 years ago
Even an pi is basically in the same performance range as the average lowest tier cloud vm so if your considering something bellow say a aws t2.medium to be enough then your only real concern is if your app is iobound enough for the sd card to be a bottleneck and it&#x27;s very likely that your app is not.<p>If you want to go with a more traditional x68 any of the many intel n4000&#x2F;n5000 series systems being sold on aliexpres and similar sizes by no name brands as firewall appliances or network something do support modern m.2&#x2F;nvme storage.
twistedcheesletover 2 years ago
Yes absolutely a Pi is likely plenty assuming it&#x27;s fairly light load. That said, if you prefer x86 you may have better mileage using an older thinclient or perhaps even something like the ODroid H3 (or frankly any old laptop).<p>Just be sure to have a decent backup system in place as consumer grade equipment like the above may fail rather abruptly with little route to recovery.<p>Edit: you may want to check out Jupiter Broadcasting&#x27;s Self-Hosted podcast. The show is very much geared towards DIY enthusiasts&#x2F;small businesses.
wiz21cover 2 years ago
Is the carbon footprint better if I host my own RPI instead of using a cheap virtual server somewhere ? Having a Raspberry on all the time will consume some electricity I gues...
评论 #34066189 未加载
评论 #34066102 未加载
belltacoover 2 years ago
Any particular reason why? You can get a free VPS in many places, for example: micro instances on AWS free tier, Azure free tier, etc. I don&#x27;t know if they give you a unique static global IP, probably not. But as another commenter said, you can proxy it to Cloudflare with their free service with cloudflared. That will protect you from others knowing your home IP and general location, and also you don&#x27;t want DDoS interrupting your home connection.
评论 #34066108 未加载
mynegationover 2 years ago
I don’t know about Raspberry Pi, but I went for the familiar Intel&#x2F;Linux setup: mini-ITX computer, fanless, similar to Intel NUC but bought off Alibaba, 4 GB memory, reasonable 256 GB SSD, 4TB WD passport, synced to my OneDrive account. I replaced big noisy NAS setup with this and it has been great and working for many years now. I do not host any public facing web server though and connect to it only through VPN (being hosted on the same computer).
taubekover 2 years ago
Check if your ISP allows this. Some ISPs forbid self hosting.
RobotToasterover 2 years ago
Raspberry Pi is hosting their own mastodon instance on one, although it&#x27;s slow as hell right now, but obviously they have a lot of hits.<p>Security is a bigger issue IMO though.
scrappyjoeover 2 years ago
I have experimented with many small form factor servers over the years. A Pi3 or 4 should work fine, but you as others have said you are limited by no SATA, source your own power brick, and source your own case.<p>My most bomb proof SFF servers are a fit-pc3, still running since 2014, and a lattepanda alpha, which has been running for about 2 years. Of the two, I’d choose a fit-pc3 or whatever the most up to date model from compulab currently is.
blmayerover 2 years ago
If your web app is not very heavy you can use a Rpi to serve it, else get something more powerful. Either way I recommend:<p>1. Having a no break with surge protection: I have my router and Rpi connected to a no-break, so even if the power goes down my site stays up.<p>2. Configure port forwarding in the router: I forward port 443 to some higher port, so in the Rpi I don&#x27;t need root for anything.<p>3. If your traffic is very high consider getting another internet link.
kkfdkerpoeover 2 years ago
You could also take a look at used fanless thin clients from HP and such. Cheap, totally silent, still fairly low electricity consumption but more power.
nyolfenover 2 years ago
if you&#x27;re just serving a static site you could probably serve it from a toaster
评论 #34065418 未加载
me551ahover 2 years ago
Most home broadband connections aren’t that good with upload bandwidth. I would suggest something like <a href="https:&#x2F;&#x2F;lowendbox.com" rel="nofollow">https:&#x2F;&#x2F;lowendbox.com</a>. You should be able to easily get yourself a cheap server for 1-3$&#x2F;month which would come with Linux, public IP ,x86 cpu, proper SSD and good bandwidth. It would also have much better uptime.
jhoelzelover 2 years ago
i have been pondering the same lately because my internet got upgraded and so far i decided against the pies because of resiliency.<p>My go to setup plan right now is 3 8 core 16 thread mini pcs because they dont use anywhere near as much power as a full setup and still allow me to run a small kubernetes cluster.<p>My main reason for the cluster is not because its fancy, but this way i can actually update my services without downtime and the underlying machines too.<p>As other have mentioned, make use of cloudflare and the different services it provides and you shall have a simple secure setup that can handle a magnitude of loads.<p>As for the app: the true enemy will be rate limiting for you. But if you decide to take a frontend that is chacheable by cloudflare you should be golden with a queue based setup. Pingdom does that perfectly for instance with their speed tests for websites.
kissgyorgyover 2 years ago
Any of the microcomputers are perfect for hosting a web app from home, you don&#x27;t even need a static IP, you can use some kind of dynamic DNS. One thing to keep in mind for a write-heavy application: it will fry an SD card, so you should use an SSD attached to it instead.
kyproover 2 years ago
What&#x27;s your goals for the project? I mean it&#x27;s obviously possible, the question would be why?
ta988over 2 years ago
Yes this would work.<p>There are a lot of alternative SBCs to the Raspberry that are easier to find these days.<p>If you plan to use the SDCard make sure you do not write logs to it or that you change it regularly. I recommend that you mount a harddrive&#x2F;ssd or usb stick for the logs if you really want them.
xz18rover 2 years ago
Concerning security: look into Traefik or Nginx Proxy Manager to proxy from your server to your domain. Then, attach a Cloudflare proxy to your domain so people won&#x27;t ever know your home IP. Only expose port 443, and I think you&#x27;re okay. Happy to hear otherwise.
gwbas1cover 2 years ago
A lot of NASes can host web sites. My Synology NAS is just a computer without a monitor.<p>I know it&#x27;s point-and-click to run Apache on it. (I personally haven&#x27;t set it up.) At some point I might try to set up NodeJS to run some blog software I wrote between jobs.
cm2187over 2 years ago
My experience with Intel NUCs (but that&#x27;s not recent models) is that they are very quiet as long as you don&#x27;t push them, but super noisy if you push them. So I&#x27;d stay way from NUCs in a living room unless you are doing low power stuff.
kindofabigdealover 2 years ago
You could probably even host on an old phone if you really wanted to, at the end of the day it doesn&#x27;t matter what you&#x27;re hosting on but how you&#x27;re managing assuming internet speed and hardware latency aren&#x27;t an issue.
roytanckover 2 years ago
Considering that your system, power supply, storage and connection won&#x27;t be redundant, I would not recommend this if you want the website to have decent uptime.<p>The cost of a Pi would likely also pay for a decent low-end VPS for a years or so.
评论 #34065620 未加载
themoonisacheesover 2 years ago
I have my old computer doing this, it replaced a rpi in 2017. I now run a proxmox node on it, and one of the VMs serves <a href="https:&#x2F;&#x2F;poggers.website" rel="nofollow">https:&#x2F;&#x2F;poggers.website</a>
ilytover 2 years ago
That app depends how good your internet&#x2F;power is. But between most ISPs giving poor uploads and remote chance of someone deciding to be ass and DDoSing my IP I eventually opted in for VPS.
endisneighover 2 years ago
As a slight variant of this question - how would you host a production site from your living room? Assuming you have a static IP and a business account.
评论 #34070415 未加载
评论 #34066125 未加载
t312227over 2 years ago
personally i would go with some silent and cheap system: an existing old pc, a (cheap) ITX-board which already includes a CPU or a raspberry with enough ram and external storage for data.<p>btw. i recently watched a video, in which the creator compares different used smaller formfactor pcs from ebay<p>* <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=rXc_zGRYhLo">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=rXc_zGRYhLo</a>
galleywest200over 2 years ago
I have a mini PC (some 2010s HP Elite Desk) that runs Proxmox. You could easily have multiple VMs going on the quiet device in the corner.
yawgmothover 2 years ago
While you&#x27;re not concerned with uptime an old laptop isn&#x27;t a bad way to go: built in battery backup!<p>As far as exposing to the net, ngrok seems cool.
评论 #34065594 未加载
andrethegiantover 2 years ago
Check out KubeSail <a href="https:&#x2F;&#x2F;kubesail.com&#x2F;homepage">https:&#x2F;&#x2F;kubesail.com&#x2F;homepage</a>
seba_dos1over 2 years ago
Why are you asking instead of just doing it? Nobody else knows what is the exact workload you intent to put there.
rifficover 2 years ago
&gt; my side project<p>You have a lot of options here that don&#x27;t involve hosting a site from your own living room. Try looking at these lists for ideas:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;jixserver&#x2F;free-for-dev">https:&#x2F;&#x2F;github.com&#x2F;jixserver&#x2F;free-for-dev</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;ripienaar&#x2F;free-for-dev">https:&#x2F;&#x2F;github.com&#x2F;ripienaar&#x2F;free-for-dev</a>
throwaway0x7E6over 2 years ago
a RPI 4 is a more powerful machine than most website servers were in the 00&#x27;s<p>serve a lightweight static website from RAM or a well-optimized webapp and it will handle a decent amount of traffic
hardware2winover 2 years ago
You folks arent worried about fire hazard?<p>I&#x27;d probably never pick having some device running 24&#x2F;7 when there are 3$ VPSes
评论 #34066101 未加载
评论 #34066118 未加载
评论 #34066051 未加载
Jugurthaover 2 years ago
Why?