this post was submitted on 19 Jan 2024
81 points (94.5% liked)

Programming

17311 readers
287 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
 

In recent times, my opinion about self-hosting has changed. Instead of paying for multiple services, I am now renting a decently sized VPS on Scaleway, and hosting all my projects on them. It’s been three months, and it has been working out great for me.

top 14 comments
sorted by: hot top controversial new old
[–] [email protected] 18 points 9 months ago

Instead of paying for multiple services, I am now renting a decently sized VPS on Scaleway, and hosting all my projects on them.

That's not self hosting. That's moving your managed services down the stack from PaaS to IsaS.

It's an unserious take on the impacts as well. No discussion of availability? Backups? Server hardening and general security? Access and authentication models? Sysadmin on aVPS is more than "running a bunch of commands now and then", and the author ignores that entire workload.

[–] [email protected] 16 points 9 months ago (1 children)

I will applaud anything embracing self hosting, but I feel like author is forgetting the experience gained during those years. Things have been simple for way longer than docker existed.

[–] expr 5 points 9 months ago (1 children)

Yeah, sounds like they may not have been very comfortable with the tools. Which is fine, but nothing has really changed.

[–] [email protected] 2 points 9 months ago

I think that what changed is that more people gained more experience, and of those people, a lot like to share their knowledge.

So the wealth of information and workaround is much bigger now. It makes it easier to get into devops, even though it hasn't dramatically changed over the years.

[–] Michal 7 points 9 months ago (1 children)
[–] noli 7 points 9 months ago

Nope, IaaS. With a VPS you are in charge of everything except for the hardware. PaaS the only thing you're in charge of is your code.

[–] [email protected] 6 points 9 months ago (1 children)

Great writeup! I've been doing a project with a 2gb 1vcpu vps as my host and one compose file. It is so much simpler than past project that I used aws for.

[–] [email protected] 2 points 9 months ago (1 children)

Can you share any specifics about your compose file and how it's structured?

[–] [email protected] 5 points 9 months ago (1 children)

I've got 4 services, mongo, mongo express, my web service and traffik. When I want to deploy I git pull master then docker compose up -d --build

[–] [email protected] 1 points 9 months ago

Thanks for the reply and explanation!

[–] [email protected] 5 points 9 months ago

Amen, I am migrating back to self-hosted as much as I can.

[–] RonSijm 5 points 9 months ago

PaaS takes away your flexibility: [...] sometimes, you also want to use the compute to run cron jobs, run background jobs, or host a small service. With PaaS, you don’t have the flexibility to do so. [...]

I don't really agree with that. I'm using AWS for that, and for my "small cron jobs" I simply create a lambda for them. Then you can create a CRON rule in Event Bridge and schedule the lambda to start whenever you need

[–] pkill 4 points 9 months ago* (last edited 9 months ago)

endorsing cloudflare

stop it, get some fail2ban, rate limiters and POW

https://git.kescher.at/dCF/deCloudflare/src/branch/master/subfiles/rapsheet.cloudflare.md

[–] [email protected] -2 points 9 months ago

hell yeah bro let's hang out and jerk off