• 4 Posts
  • 46 Comments
Joined 2 months ago
cake
Cake day: September 17th, 2026

help-circle

  • same here, a small browser game on one Hetzner VPS, no failover at all lol. what I have is a nightly Postgres dump that leaves the box, Uptime Kuma pinging it from somewhere else, and a deploy script that can rebuild everything on a fresh server. so if Hetzner goes down my plan is honestly just wait, and if the server dies its restore on a new one and lose a few hours of data, I guess for a hobby thing thats an ok trade. the part I never did is actually test the restore end to end, which is kind of the point of the post


  • I have an old armv6 Pi at home (174 MB of usable RAM), and it does two things that fit it really well. one is sending the wake on lan packet to my desktop, so I can turn it on when I’m not at home, over tailscale. the other is a small presence monitor, arp-scan every 2 minutes into sqlite, and it publishes each device to home assistant over mqtt, so I know what is on at night and get a ping when something new joins the wifi. if you do something like this set an expire_after on the sensors. mine was hanging for 79 days on an mqtt broker IP that didn’t exist anymore and the dashboard kept saying “17 online” the whole time, I didn’t notice lol


  • for non technical people I’d go with the boring version, a small windows machine that stays at home, tailscale and normal remote desktop, nothing open to the internet. two things bit me with tailscale that could bite you too. my windows pc at home is shared, and when another windows user logged in, tailscale went offline for me, the pc was on and fine but it had disappeared from the network. so use one windows account for everybody, or look at the unattended mode. and the keys expire after some months by default, one of my servers became unreachable for days because of that, so turn the expiry off for that machine. proxmox would work too, just not as the first thing I learn while the business depends on it I guess


  • agree, and for me the worst ones are the quiet inconsistencies, not the big rewrites. on my side project, a small browser game, the client handled server error codes separately in 4 different actions, so when I added a new code on the server one of them just read it as “no charges left” and showed 0, no error anywhere. nobody calls that a blunder when they write it, it’s just 4 slightly different ifs, but now every new feature has to remember all of them. in review it’s the same, clever code is easy to spot, a second way of doing the same thing usually isn’t



  • same here more or less, at home nothing is open anymore, everything goes through tailscale and a raspberry pi that also does the wake on lan for the big pc when I need it. the only thing exposed is a hetzner vps with a small browser game, and there I keep it boring, ufw with just 80 and 443 (and rtmp for a stream relay), caddy in front, the node app and postgres only reachable from inside the box. I guess that’s the trade off that works for me, whatever strangers need to reach lives on one machine I watch closely, the rest stays behind the vpn




  • yeah you can do it with just .htaccess, both domains land in the same folder so you check the Host header with mod_rewrite. something like this at the top of the .htaccess in your web root:

    RewriteEngine On
    
    # project.test root shows project.html
    RewriteCond %{HTTP_HOST} ^(www\.)?project\.test$ [NC]
    RewriteRule ^$ /project.html [L]
    
    # anything else on project.test gives a 404
    RewriteCond %{HTTP_HOST} ^(www\.)?project\.test$ [NC]
    RewriteCond %{REQUEST_URI} !^/project\.html$
    RewriteRule ^ - [R=404,L]
    

    example.net doesn’t match those conditions so it keeps working as normal. and yes it’s a bit of regex but only that much, the backslash is just so the dot means a literal dot. one gotcha, if project.html loads css, js or images they’ll 404 too on project.test, so either inline them or add another RewriteCond %{REQUEST_URI} !^/project-assets/ line before the last rule and keep them in that folder. I do this kind of thing on shared apache hosting at work quite often, only thing to check is that your host has mod_rewrite on, almost all do


  • not weekends but I had one that failed on two random days in a month and looked totally fine the rest. it’s a scheduled job that reads a couple of sites through a logged in browser on my laptop, and those two days the browser just wasn’t connected, so the job ran on time and had nothing to read. the log said “ok, nothing new” which is the worst kind of failure lol. now it uses a browser that keeps its own session and the other one only as fallback, and an empty result gets reported as a failure and not as a quiet day. same lesson as yours I guess, check what else has to be alive at that moment, not only what’s running


  • nice, the “draw from your phone and see it at home” thing is pretty much the same problem I have with a small shared pixel canvas game I run, so on your open questions this is what ended up working for me. I didn’t go websocket, it’s SSE for server to client and a plain POST for every action, the POST response is kind of the “rpc return” and the change goes out to everyone else through the SSE stream. conflicts were a non issue because it’s one node process with the state in memory, two clicks on the same cell just apply in order and last one wins, the only place I needed a real check was undo (it answers 409 if someone touched the cell after you). for reconnects I don’t try to replay what you missed, EventSource reconnects by itself and on reopen the client just fetches the whole canvas again, it’s small enough that it’s cheaper than being clever about it. curious if the phone going to sleep gave you trouble with the websocket



  • from the other side, i’m the cto of a small agency and i wrote our rules for working with ai, so maybe it helps. the first one is that the author answers for the code, “the model did it” is not an explanation for anyone. asking the model to review its own diff is a first pass, not a review, the same model that got it wrong is checking itself. the way i put it to the team, ai makes producing cheaper, not deciding or verifying, if you ship double with the same error rate you get double the errors. if your company only measures volume, the atrophy is more a management problem than yours, i’d push back with incidents and rework numbers, thats the language they listen to


  • i run a small browser game on a hetzner vps and for me the bots were never a load problem, it was the stats. the game shows how many people are online and every crawler that opened the live stream counted as a new player, in early october it was 28 of 61 stream opens. then a headless chromium on residential proxies, different ip every time, made 40 fake players in two days. what caught it was the Sec-CH-UA header, it said chromium 146 while the user agent said chrome 120, real browsers don’t mismatch like that. i don’t block them now, they just stop counting as people, which is kind of depressing too i guess


  • nice! for anyone with postgres in the mix, what bit me wasn’t the backup itself but the disk. a table in my side project kept one snapshot per minute and never deleted any, the disk hit 100% and postgres went down with a PANIC for like 40 min. now the nightly pg_dump writes to a .tmp, checks it with gzip -t and only then replaces the old file, and the app warns me if the newest dump is older than 26h or suspiciously small. restoring is just loading it into an empty db and starting the app, boring but it’s the part you actually want to know works





  • Plan sounds fine to me, debian + immich in docker + tailscale is pretty much the boring setup and boring is good for a box in a shed. one thing I’d do before carrying it out there, install tailscale and ssh, reboot it a couple of times and make sure it comes back on its own without a screen, because walking to the shed with a monitor gets old fast. also something like uptime kuma on another machine (or your NAS) pinging it, so you know it’s down before you’re on holiday and the photos stop uploading. I run a box at home I only reach over tailscale and that’s the part that saved me most.