How do I create a server for hosting a website? #AskNostr
Discussion
I think Umbrel device sort of helps in that - making your own server plus full bitcoin node.
Draw a large pentagram on the ground using salt, then place a usb stick containing the files you wish to serve in the middle. Proceed to sacrifice something (preferably a virgin) to Cthulhu and chant "Please let this fucking shit work!" over and over - assuming you set your TTL to 3600, then you will need to chant for a full hour until your DNS propagates and the site goes online. Repeat the chants at least every full moon for best results.
I’ve been trying this method for years, but it never seemed to work 🤷♂️
check out https://www.turnkeylinux.org/ for the 'easy' way
but any Linux based machine can host a website— ubuntu with apache server on a lowly pi can even handle pretty much any site if you don't have tons of traffic
If you have a computer, run nginx and make sure ports 80 and 443 are open. Forward those ports on your router to your computer's IP address.
Then you can access the nginx server running on your computer from your home's public IP address. You can then buy a domain and point it to that IP to access your home server. Once you have a domain, you can use `certbot` to get an SSL certificate and add it to your nginx config file to enable https to your server.
These are just the basic steps, but you'll need to look into how to do each step exactly. perplexity.ai is a great place to ask questions for that. Good luck!
Might want to mention a dns provider that can proxy so home ip isn’t revealed.
I know who I use, but I’m not trying to start too many fights tonight. 🤣
I promise not to fight, but I didn't know there were providers who could do that. I'll look into it now 🧐
People get so heated as if the CIA is going to knock on your door and walk you over to the closest gulag if you aren't 100% private with all of your IT infrastructure, living your life like you're the FBI's most wanted.