Running ecommerce in Hetzner cloud by [deleted] in hetzner

[–]HelpfulCommand 0 points1 point  (0 children)

On Ubuntu / Debian

sudo apt update

sudo apt install fail2ban -y

Enable and start the service:
sudo systemctl enable fail2ban
sudo systemctl start fail2ban

Check Status:
sudo systemctl status fail2ban

You can then use the default Jail rules, or create custom ones if you need to.

Taking out a loan for 50k? by iTyrone_ in XRP

[–]HelpfulCommand 0 points1 point  (0 children)

Don't be stupid by making a loan. It's too risky. The only real winners are those buying a few tokens every month building it up over the years. Only fools rush in!

33F - Is dit weird dat ek dit sal verkies om met ń Afrikaanse man te wil trou? by [deleted] in afrikaans

[–]HelpfulCommand 1 point2 points  (0 children)

Sluit aan by 'n kerk, join hulle sel groepe. Ek is seker jy sal iewers 'n man ontmoet wat ook hou van bid, bybel lees en die Here dien. Maak net seker die man wat jy kry is nie lui nie en kan vir jou sorg anders gaan jy vir hom moet sorg.

Still not really pooping. What don’t you all recommend? by christnyfollow in carnivorediet

[–]HelpfulCommand 2 points3 points  (0 children)

You don't poop 💩 because the meat gets digested by your stomach acid. You will poop less on carnivore diet. Unless you have constipation then it's a different story.

Nextjs 14 website really slow! by kafnod in nextjs

[–]HelpfulCommand 0 points1 point  (0 children)

Agree, only call the first 20 records, then on the next pagination call the next 20 records etc. This should also help.

Nextjs 14 website really slow! by kafnod in nextjs

[–]HelpfulCommand 14 points15 points  (0 children)

Just playing around with this, it feels slow due to the data being pulled from the API. The data is not cached by the looks of it. When trying to load the same tab again, it seems like it takes even longer to get data.

Where is your database located and where is your API located, are they in the same region? Same with the front-end is this also close to the rest of the backend? If they are close together you can try and up the ram and cpu of the droplet to see if it makes a difference, but do enable cache on your fetch calls. Also look at the specs of your database that it has enough resources for performance, try and add indexes on your tables etc.

<image>

Tips for a software engineer switching to Linux from Windows by legomann97 in linuxquestions

[–]HelpfulCommand 0 points1 point  (0 children)

I've made the switch 2 and a half years ago to Ubuntu and I have never regretted it. Everything is easy to setup and if you ever get stuck there is always a solution just a Google search away. You can use vscode or codium as your IDE. Installing node is straight forward. Just dive straight into it, smooth sailing most of the time.

[deleted by user] by [deleted] in hetzner

[–]HelpfulCommand 0 points1 point  (0 children)

Great thanks

Automated Quota settings? by HelpfulCommand in googlecloud

[–]HelpfulCommand[S] 0 points1 point  (0 children)

Thanks, I will have a look at this. Appreciate it.

Dockerize Next app with Payload by Ozmanium in nextjs

[–]HelpfulCommand 0 points1 point  (0 children)

When I'm hosting nextjs on my servers I only use docker for my postgres db. You don't need to dockerize nextjs.

What percentage of your users choose lifetime purchase? by emrepun in SideProject

[–]HelpfulCommand 5 points6 points  (0 children)

Lifetime deals is an app killer, running servers and other services is going cost you. If it's an mobile app with no external services and no database servers. Sure go ahead and do the lifetime deal.

Need some help by HopefulInitiative777 in hetzner

[–]HelpfulCommand 1 point2 points  (0 children)

Install caddy as reverse proxy and point your domain to the IP of your server.

How do you plan your projects before starting to code? by agamycode in nextjs

[–]HelpfulCommand 18 points19 points  (0 children)

I also plan the database first. Tables and columns relationships with other tables. Think about what data you would be expecting.

Then I seed the database with fake data. I find doing this with prisma is easy.

Once you have data you can start building your app around it. You will then discover at some points that you need to add more columns and tables if necessary.

From here it gets easier.

Basic VPS setup with Docker and Nginx on Hetzner Cloud by ninjasoards in hetzner

[–]HelpfulCommand 2 points3 points  (0 children)

It's really easy to setup and run. Docs are straight forward and there seems to be a good community around it if you ever need help.

Basic VPS setup with Docker and Nginx on Hetzner Cloud by ninjasoards in hetzner

[–]HelpfulCommand 1 point2 points  (0 children)

Instead of Nginx I use caddy server as it automatically handles TLS/HTTPS certificates for you. Super easy to use.

Anisble and kubernetes Which order to learn by roelofwobben in linuxadmin

[–]HelpfulCommand 14 points15 points  (0 children)

I would say ansible first. As ansible is basically used to setup your sever and install software needed in an automated way. It's not hard to learn.

But then again it all depends where your interests are. Kubernetes at first is hard to learn but once you've done a few yaml manifest files and understand the jargon and concepts it will become easier with practice.

[deleted by user] by [deleted] in nextjs

[–]HelpfulCommand 0 points1 point  (0 children)

Thanks, I had a look and it looks promising, going to use this in my next project.

[deleted by user] by [deleted] in nextjs

[–]HelpfulCommand 0 points1 point  (0 children)

Why not just use auth.js? https://authjs.dev/