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.
Published at
2024-08-18 21:33:20Event JSON
{
"id": "3f5bf25000530767af7653ee0f8cbd25b2535c862dbe94ac696f21c3b0d0b035",
"pubkey": "eddb5732903f27038c28ca47bc2fa3045990afa771ccf3eaedb86d55d94bc7fc",
"created_at": 1724016800,
"kind": 1,
"tags": [
[
"e",
"064be1b03fdff8e63609478a1037bd05030390899297e8110bfe055ae5ed2098",
"wss://freespeech.social/relay",
"root"
],
[
"e",
"9e716a0577f7154f2bfa0a69ba3dda5b822a188fd457506fe2dbc546f82aef5c",
"wss://freespeech.social/relay",
"reply"
],
[
"p",
"0461fcbecc4c3374439932d6b8f11269ccdb7cc973ad7a50ae362db135a474dd"
],
[
"p",
"43d7f07d10b9e662745e10b2fc201a74dc178a308c31409350d06b04477816e1"
]
],
"content": "Would you believe this site is running on Windows?\n\nMight 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.\n\nI 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).\n\nI 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.",
"sig": "cd760b47b8882ce6e7b06be58d0ef498854a6ad6b507828658d3dc055e803b953915007434be14edcc14edb63b8fefd25a5c48fccd2bbff9ce3b6ea030e9b40e"
}