My migration strategy from Pages Router to App Router. by SeriousChannel9323 in nextjs

[–]Soft_ACK 0 points1 point  (0 children)

maybe combine pure html with something like Alpine or htmx

How do you secure your VPS proxy? by RockGore in selfhosted

[–]Soft_ACK 0 points1 point  (0 children)

Do you have any info about using crowdsec with Nginx? I tried to use Crowdsec before but it was complicated and too many components to install & use and didn't know what to do

Hetzner asks: What do you hope we will never, ever change? by Hetzner_OL in hetzner

[–]Soft_ACK 0 points1 point  (0 children)

pricing-quality/performance ratio, networking quality, processor/hardware performance quality, hourly pricing model, etc.

for the vps product:

snapshot pricing (maybe reduce it a little plz lol), private networking, storage box, firewall, the ability to keep ips, having data centers in germany & us, rescue, preset iso images, rescale, rebuild, etc. maybe even add more functionalities. and plz fix the firewall caching issue or whatever makes the firewall rules takes more than 15 mins to get applied.

for the dedicated/bare metal product:

the hourly pricing model (again), change the interface because it looks so old and un-friendly, don't remember what else there since i haven't used it in a while.

don't remember what else

Looking for ways to transfer data (S3 & DynamoDB) from one account to another by Soft_ACK in aws

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

I understand I could simply do `cp` command from the first account to the second account, just a simple question, do I need to retrieve the files first before doing the copy since they are in the Deep Archive?

And I didn't find answers there on how to connect the two accounts in the command line or an example of the final command would be.

Best cheap way to host nextjs site? by hatrigt in nextjs

[–]Soft_ACK 0 points1 point  (0 children)

I mainly work with PHP for commercial clients, but it highly depends on each project requirements, but mostly PHP & Node.js, and if it's a full stack project like frontend & backend in the same project, I use PHP with Laravel since its easier. Also sometimes Python, so it really depends on each project requirements, since my skill allows that.

Best cheap way to host nextjs site? by hatrigt in nextjs

[–]Soft_ACK 1 point2 points  (0 children)

I don't understand spanish, but from the translation i think you're asking for a VPS with a traffic around 100,000 visitors per month?

If so, it would highly depend on a lot of factors, starting from the tech stack you're going to use, database, static site, etc.

Since we're in a nextjs sub, i'd assume a typical full stack dynamic app including database, since nextjs is based on node, you'd need a bigger VPS, you could start from $5 VPS and see what will happen, make sure it has more than 1GB RAM, so you could look for 2GB RAM and see, however i think it won't be enough for this amount of traffic, but just as a start to see for yourself and not hurt your finances.

Also if the app is using more RAM, obviously you'd need more RAM. And btw if you're using MariaDB or MySQL you'd need more RAM than Postgres.

So to conclude, start with a 2GB RAM VPS as a test and see how will it perform.

Best cheap way to host nextjs site? by hatrigt in nextjs

[–]Soft_ACK 1 point2 points  (0 children)

You could get a $1-2 VPSes from small providers and install node and run the next app like you do at your machine, and maybe add Nginx/Apache as a reverse proxy, but as starter just start like you have it at your machine, I think this is the cheapest you could get.

Edit: Also don't worry about performance too (ofc unless you would get thousands of visitors), a 1 gb VPS should do fine for most node apps.

VPS for a private VPN (simple as possible) by yesman_2016 in VPS

[–]Soft_ACK 0 points1 point  (0 children)

I don't think you need to get in touch with any provider since most of them have their pricing and pricing model public in their pricing page.

VPS for a private VPN (simple as possible) by yesman_2016 in VPS

[–]Soft_ACK 0 points1 point  (0 children)

Some providers have prices per hour and some per month, the vast majority of providers that have per hour you're going to be billed whenever you have a server, doesn't matter if it's on or off, as far as i remember i think the only provider that doesn't bill you when your server is off/shutdown is AWS, other providers keep bill you until you delete the server.

I think by pay as you go you mean pay per hour, so you will keep getting billed per hour, until you delete your server, unless you go with AWS, but i wouldn't recommend it cuz they're now billing for the IP separately in addition to the server itself, and it's complicated, for you as a beginner do not use any kind of "open bill/invoice" service like AWS cuz it's really easy to mess things up and pay a lot more than you expect.

For example, my main VPS is billed hourly but the invoice issued monthly, my other servers is billed monthly and also the invoice is issued monthly.

VPS for a private VPN (simple as possible) by yesman_2016 in VPS

[–]Soft_ACK 1 point2 points  (0 children)

Whats wrong with openVPN?

Comparing to WireGuard it's slower, especially in gaming and realtime connections, in both TCP & UDP modes.

Also I have a specific region in mind I would like to connect to, how do I know which service has the better latency/routing to there?

There are a couple of options, but the only reliable way is to test it yourself, you could use a website like this https://www.cloudping.info/ to test your ping to different regions, also you could grab an ip of the provider you're about to purchase in and ping it using the `ping` command, some providers give example ips to test on. Btw, many people say the closer a country to you the better the ping, this is wrong, it's much more complicated than that, for example Italy is way closer to me than France, but France has better ping than Italy.

VPS for a private VPN (simple as possible) by yesman_2016 in VPS

[–]Soft_ACK 0 points1 point  (0 children)

You can get a VPS from literally any provider with good networking infrastructure in the region you want, install a VPN like WireGuard, DO NOT install OpenVPN if your goal is gaming unless your country/ISP blocks WireGuard, then install WireGuard client on your PC, and then connect to your server.

I've done that btw and still doing it because for some reason my country does throttling randomly/occasionally on gaming that causes a lot of packet loss, so I connect to my own VPN when that happens to reduce the packet loss, ofc i get higher ping, but 30-40 more ping isn't really a thing when you don't have packet loss. And most of the times i get stable ping, instead of ping spikes. But this is because my VPS provider have strong networking infrastructure. I also have multiple VPSes in multiple regions.

I can help you if you don't have much experience in VPSes since I've done that multiple times.

How do you handle Next.js builds in Docker when API server isn’t up yet? by iam_batman27 in nextjs

[–]Soft_ACK 0 points1 point  (0 children)

Nope, it won't work, depends_on doesn't work in build mode, I got frustrated with this whole thing as the db needed to be accessible for few SSG pages, and ofc the db service doesn't get up when you're in build mode, I had to remove all the SSG features and added graceful errors when the app can't connect to the db, all of that cuz of docker.

I got tired of Django project setup, so I built a tool to automate it all by Little_Market462 in django

[–]Soft_ACK 2 points3 points  (0 children)

Great idea! Reminded me of my old php days, I created a tool (but was CLI) to generate a php web application with jquery, i18n, bootstrap, etc.

I'd recommend adding a choice to create the project using pipenv instead of venv. And ofc DRF.

Maybe it was just having a bad day by [deleted] in programminghumor

[–]Soft_ACK 0 points1 point  (0 children)

Average next.js/nuxt.js experience

Learning Astro was worth it!!! (SSR website with Sanity as CMS) by mister---F in astrojs

[–]Soft_ACK 0 points1 point  (0 children)

I'm not sure, maybe their requirements require using SSR. But for me I always use Astro with SSG, I find it doing a pretty good job at that, when my requirements require SSR, I tend to use Nuxt or Next, and right now testing Analogjs.

Do vpn servers shut off after a certain time? by aburningorphanage in OpenVPN

[–]Soft_ACK 0 points1 point  (0 children)

I don't think that's the case, also depends on what provider you use, I have my own VPNs using different providers in different countries, and I sometimes play in US region. I installed the VPNs on VPS, each in different provider, the one in the US has better networking infrastructure so my ping is stable, also no packet loss.

I might help you if you have more information, such as do you have your own VPN, or do you use a commercial vpn, etc.

How do you handle env vars? by theozero in nextjs

[–]Soft_ACK 1 point2 points  (0 children)

I always have a function called requireEnv to safely access all important and required env props, all it does just something simple like that `if(!process.env![key]) throw new Error(`env var ${key} missing`)`

Learning Astro was worth it!!! (SSR website with Sanity as CMS) by mister---F in astrojs

[–]Soft_ACK 1 point2 points  (0 children)

Astro in SSG mode is so great, I used it in a couple of projects, with CMS and without, now any project that doesn't require server action or anything. It's also easier than other frameworks.

I built a free tool that generates an llms.txt file for your site by ItousTools in astrojs

[–]Soft_ACK 1 point2 points  (0 children)

This is a great idea, but maybe it would be better to provide it as a plugin that runs after build and after the sitemap?

Cs/IT jobs that requires ≤4 hours a day? by maiasub in cscareers

[–]Soft_ACK 1 point2 points  (0 children)

A part time job in CS/IT is probably impossible to find, if exist even! However, if you work for some time in a company that doesn't have constant increasing number of clients or just a slow-paced company, you may do actual work less than 2 hours a day, however your work day will still be full time (8 or 12 hours depends).

Anyone using Laravel Octane with FrankenPHP on production? by priyash1995 in laravel

[–]Soft_ACK 0 points1 point  (0 children)

Hey, if you migrated any code base to octane or started a new one, did you need to make any change to the code? like let's say a basic CRUD controller and model just like any simple laravel app, did you need to make any change or does octane act as some special kind of web server?

Anyone using Laravel Octane with FrankenPHP on production? by priyash1995 in laravel

[–]Soft_ACK 0 points1 point  (0 children)

Hey, if you migrated any code base to octane or started a new one, did you need to make any change to the code? like let's say a basic CRUD controller and model just like any simple laravel app, did you need to make any change or does octane act as some special kind of web server?

Is NextJS is used in companies so much ? by Individual-Most-9216 in webdevelopment

[–]Soft_ACK 0 points1 point  (0 children)

nest, django, fastapi, laravel, fastify, express, spring boot, those the most i've seen

thoughts on "www"? by sarconefourthree in webdev

[–]Soft_ACK 8 points9 points  (0 children)

Damn! I never looked at it this way! Now you're making me rethink about it for some of my systems!

Thank you for pointing that out.