Why Nostr? What is Njump?
2024-08-18 21:33:20
in reply to

Waethorn on Nostr: Would you believe this site is running on Windows? Might seem blasphemous, but I got ...

Would you believe this site is running on Windows?

Might seem blasphemous, but I got a spare system that isn't great with Linux hardware support. So I put on a Win11 23H2 install, gutted all the included apps and disabled a whole bunch of stuff, disabled sleep timers, etc. I set up WSL2 with Ubuntu (standard Ubuntu that supports upgrades). I found some info about a new feature called "mirrored networking" on WSL (only available on Win11 22H2+) - no more WSL NAT or port forwarding, just shared network access for both Windows and Linux applications so services talk to each through localhost.

I set up IPFS Desktop in Windows, which creates a node automatically for you without really even having to think about it and includes a nice dashboard application, installed Postgres for Windows so that I've got pgAdmin, and the WSL instance can be small and the rest of the storage is shared for both the database and IPFS storage. Ditto and Soapbox just run in WSL (I tried running Deno on Windows natively, but had a bunch of failures with parts of it). I did the database setup for Ditto in pgAdmin with a couple clicks. This is all running as a VM on a Window Hyper-V host too (it's a beefy system with lots of storage - the other half of it is for another project I'm working on).

I don't use nginx or certbot because it's all behind a Cloudflare Tunnel, which does the proxy and SSL termination. I only needed 1 tunnel for both the stock domain and the media subdomain, and just had to redirect the 2 ports: 4036 for Ditto, and 8080 for IPFS. No router port forwarding needed either since the tunnel does firewall traversal.
Author Public Key
npub1ahd4wv5s8uns8rpgefrmctarq3vepta8w8x086hdhpk4tk2tcl7qkj6ee5