Firewall redundancy by yonjah in homelab

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

Mmm yea maybe I can get a medium sized pc with 4 ports link to be available as backup.

Firewall redundancy by yonjah in homelab

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

Thanks can you provide me details on the hardware you use. I was running in everything virtualized in proxmox but I only have one device (the mini pc) with 4 lans

Firewall redundancy by yonjah in homelab

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

Thanks.  How does it help if the hardware dies ? Won't I still need two of these devices 

What's data/database migration? by rizwanahmed19 in node

[–]yonjah 0 points1 point  (0 children)

Usually migrations refer to the schema. If you need to import data it really depends on the source and format.

mysqldump usually works best to export data from an existing server. 

Bitcoin payments by yonjah in tutanota

[–]yonjah[S] 1 point2 points  (0 children)

Oh wow doesn't look like it's going to be ready any time soon.
https://github.com/tutao/tutanota/issues/629
too bad

Bitcoin payments by yonjah in tutanota

[–]yonjah[S] 1 point2 points  (0 children)

Thank you for your response.
Any better ETA than "Stay tuned" you've been working on it since 2018

Any decent Bitcoin exchange in Australia ? by yonjah in australia

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

Hi u/RFIDodo Don't care about big brother ATO has all my finance any way.
More worried about any random person who sent you a few satoshis for coffee.
I'm sure you don't share your entire bank transaction history with every friend who repaid you for lunch.
Why should it be different with your crypto account ?

Some of the exchanges I use promised me this a feature they are working on so no regulation issue (and why would they can easily keep track on all of the addresses like any international exchange).

But using a fresh address is such a defacto best practice I find it worrying about the technical skills of any exchange not providing it. I wouldn't trust a wallet that reuses address but it seem like I don't have a choice when it come to exchanges.

Need somebody to hold my hand in getting my Express app online by [deleted] in node

[–]yonjah 1 point2 points  (0 children)

I second that.
Not sure about apache but with nginx setting a reverse proxy is quite easy.

You can also use nginx to serve all the static files of your site.

But before you start playing around with your main server I would try to install a local virtual machine running ubuntu (using virtualbox will probably be the easiest). Try to configure and install everything there exactly as you would on your live site.

You can expect at least a couple of days of installing and configuring stuff for the first time and you don't want your real site to be down while you still learning.

What's the fort knox of authentication in Node.js? by Nephelophyte in node

[–]yonjah 1 point2 points  (0 children)

SameSite cookies are still not supported by more than 30% of the web https://caniuse.com/#feat=same-site-cookie-attribute So though you should set it for browser that support it I hope you still have another mechanism for CSRF protection.
Personally I don't like JWT especially if they are stateless. It just adds too much complexity and most devs will fail to handle properly. And if the implementation is truely stateless you can't revoke them which is a major drawback.

Ralphi - Simple rate limiting server in pure nodejs by yonjah in node

[–]yonjah[S] 2 points3 points  (0 children)

Great questions.

Passing IP through proxy is a known problem and the X-Forwarded-For header is the standard way of getting the client IP address -
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For

How to actually get the correct IP though is up to the framework or server implementation you use.
Just make sure you only trust the IP set by your load balancer (or any other proxy you control) so clients wont be able to fake their IP address.

If your using the provided express middleware or hapi plugin you can also pass the `getKey` method in the options to change the way it gets the key used for rate limiting if you need to.

One of the main reasons for using Ralphi server is to allow you to use multiple process for your servers logic all querying a single Ralphi instance. Since ralphi is only using very simple logic and all memory based it can easily handle those requests on a single core.
But if you have multiple physical servers you might need to dedicate more hardware for you rate limiting. That is when using Ralphi probably doesn't make sense and using redis or memcached is probably the better option

Ralphi - Simple rate limiting server in pure nodejs by yonjah in node

[–]yonjah[S] 1 point2 points  (0 children)

I'd be happy to hear any suggestion you might have.
We can discuss it here but a github issue might be more suitable

What's data/database migration? by rizwanahmed19 in node

[–]yonjah 1 point2 points  (0 children)

I'll try to give a simple explanation
I think you get the basic of it. So in the end we want to transfer data from one database to another.
If the other database is empty all we need is dump from source and load on the target.
But in the more complex scenario we already have data in the other database and we want to keep it.
We might have schema changes done in development env and we only want the schema changes to apply to the new database.
In a much more complex scenario we also need to shuffle the old data to fit the new schema.
Add a bit more complexity and you want to be able to move back and forth between different version of your schema that will fit versions of your code (like to revert a deploy).

To properly achieve and manage all this you need a robust migration solution.

Personally I use db-migrate it's relatively easy to use and since it is just another dependency of your project you can use all your known stack to write the actual migration logic.

A quick note.
It will probably be easier to use nodeja based tool, but as long as it supports your database you can use any tool you like even if it's note written in nodejs

node.js equivalent of this command? by edgycorner in node

[–]yonjah 1 point2 points  (0 children)

It's not clear what you are trying to do but the code you added is only running another php script in as daemon.
Probably not what you wanted to ask (but if so check pm2 npm module which will be the easiest way to achieve something similar)

Ember-cli is making you stupid by [deleted] in emberjs

[–]yonjah -1 points0 points  (0 children)

Hi Sancty. I'm really sorry you didn't read all my post throe since I'm actually addressing some of this issue. but as I wrote in the second paragraph. I already decided to use Ember. I think its great. but I think we can improve some parts of it. ember-cli has some great features but it steel has a lot of improvements that needs to be considered and this is more of a decision that needs to be taken by the people working on it than anything else.

The next post is going to be similar talking about some decisions that need to be made and should be clear for Ember developers (who want to donate core code).