so i started hosting my development environment on my home server and set it up so that i can access it over the internet
why?
the reason why i moved to self hosting has been a mixture of reasons
-
working remotely
i've been working on my projects on my pc, and it's great except recently it's been randomly turning off (psu problem?)
so sometimes on top working remotely on my laptop, i've also been working on my laptop at home
it's really helpful to have access to my repo on a remote server where i don't have to worry about remembering to move my .env files
it's so convenient!
-
i already had a home server setup
in late 2023 i just tried to install a NAS at home just for kicks
but i knew i could do more on it, since the NAS was a virtual machine on a proxmox on my machine but i never really never understood how to do it
how?
honestly not gna write much about this, i'm just gna write abt the tools i used
- the machine that runs the server is an old $90 dell workstation i got off a secondhand marketplace
- a proxmox running on the machine so that i can create multiple vms and containers
- a pop os vm on the proxmox
- did port forwarding on my router so that my vm can access the internet, set up ssh public key access so i can go in when i'm outside
- installed nginx, and made any incoming traffic to localhost 3000, and set my router to direct any traffic on port 80 to go to my vm
- also since my home ip address is a dynamic ip address, i used a free ddns service and setup a cron job to keep updating my ip with ddns. i'll likely move to cloudflare and just set it up there though.
what i'm probably gna do next
i'm likely gna try to move chxshire22.com and my other websites to be hosted on my home server.
but before that, i will need to figure out how to configure nginx to do virtual hosting, and also how to configure my dns records so i don't screw it up
i think i'm mostly worried about breaking my site and not being able to restore it. but it has to happen some day
if you'd like the resources or links to what i used specifically, feel free to shoot me an email
cheers