@brophy Cool to see another MTA community here
JasperNL
Posts
-
Who is using NodeBB? -
How to Load Balance for all CPU CoresAdding both redis and mongo and setting mongo as default DB driver only uses redis to store sessions with and no cached posts or quick-served pages? In that case, I'll keep Redis around.
-
Nodebb Hosting - Fully Managed - Simple to use@chrispy said in Nodebb Hosting - Fully Managed - Simple to use:
ALL INSTANCES COME WITH A 10GBPS CONNECTION! This means that NO LAG is anywhere to be found. Your Nodebb install will load in seconds no matter who accesses it.
If you're using Vultr (as your IP suggests), then 10GBPS is only accessable from their bare metal instances, and not from their VPS instances. The 10GBPS is also "burst", so not guaranteed. Neither does the connection speed mean that it has "no lagg anywhere to be found" because of peering: especially asian customers (Japan, Singapore, India, Korea) cannot get close to 10 MBits when connecting to the US instances of Vultr, even if the instance has a 10GBPS port.
I also believe that you share your resources over all or a portion of your customers, because of the price. That may be worth mentioning as well, as it's an obvious deal-breaker for many customers.
-
How to Load Balance for all CPU Cores@baris said in How to Load Balance for all CPU Cores:
@pummelchen There is an issue in one of our dependency that effects mongodb, https://github.com/scttnlsn/mubsub/issues/61, in the meantime you can install redis and add a redis block in your config.json so pubsub uses redis instead of mongodb. That should get rid of the error you are seeing in the logs.
I had the same error. Adding redis as additional db did the trick. A question: if it's fixed, can i disable redis without a problem or should I flush changes to mongo somehow? (Memory is scarce, so I prefer to disable redis if possible)
-
NodeBB - Full Stack SetupI think this is a good tutorial, and will prove useful to many users! However, I have some remarks that I'll list below.
DNS
What has DNS to do with a stack? Not a lot, thats right, but as in my previous guide we will target the maximum possible performance. Therefore, we will also try to reduce the DNS resolving time.
To achieve this we will route our domain through CloudFlare. Just sign up and follow the instructions. Once done be sure to have DISABLED CloudFlare in the DNS settings (grey clouds).But why? Due to the use of CloudFlare the server response time can be delayed around 0,7s, which is quite a lot, considering we want the maximum performance. Instead we will just make use of CloudFlare's fast DNS network.
Depending on the scale you want to deploy the server on, cloudflare can actually be a good idea. Especially if you're afraid of DDoS attacks. There are basically three "modes" that you can choose from
- The mode in which you do not use anything of cloudflare, which you suggest.
- The mode in which you use cloudflare to cache static assets, but route websockets through your own server. This can be achieved by setting the
socket.io
parts inconfig.json
. This does not save you from DDoS attacks, as the origin server can be found quite easily. This is the mode that I would recommend. - Use cloudflare as websocket proxy. This secures you from DDoS attacks and works fine. This mode has a lot of cons, because cloudflare can kill the websocket connections without any specific reason, and you have the cloudflare proxy delay that you're considering. I would recommend this for small-scale sites only.
Security
...
Change it to a number like 1990 for example. Once edited hitCtrl+X
. Confirm withY
.Auts. This is not secure. Besides the "security by obscurity" arguments that this insecure, there are also practical objections with this port. Any port >1024 can be hijacked by any user on the box, whereas ports <1024 are reserved for the system/root user. So if you want to change the port (because you may believe that it's actually secure), keep it <1024!
I always recommend to keep the SSH service at port 22 (as this is designed for it). For security, you can install fail2ban and set up a SSH keypair authentication instead of password authentication. Also: If your host gives you a root password, the first thing you should do is changing it!
Database
Now lets get onto NodeBB. Instead of MongoDB, we will skip into the future and go with Redis. Super fast, super simple.
MongoDB has a future as well, and the benefits of redis over mongo.
Again, great tutorial!
-
Can't register at https://forum.wemos.ccIs your IP logged on stopforumspam.com ? You can find your IP at ip4.me or ip6.me
-
nodebb installation document url not working.. -
Who is using NodeBB?@guangzhen said in Who is using NodeBB?:
@baris I'm using NodeBB as a forum for my iOS app, Thanks NodeBB
http://opengrok.clubYour automatic translation creates some style overflows when "topics" and "messages" are translated to somewhat large words That may be something to look at
http://i.imgur.com/PvnjkXY.png -
German translation (Du / Sie)Many forum/blog software comes with two German language versions, formal and informal. As German is already quite well translated, maybe it's an idea to create a branch of the current one, and call it "German Informal". (or German Formal, depends on what's better)
-
lacking https supportYou should specify in your config file that the NodeBB URL is indeed https. Then the newly uploaded images will have an HTTPS url automatically.
-
Run two nodebb ionsame server@kenygamer That doesn't make sense to me. Servers with more resources are more cost-efficient than servers with less resources, just because the administrative costs are lots higher for cheaper servers...
-
Host NodeBB?You don't need a PC to host it on, because it's "public cloud". OpenShift issues the servers for you.
-
Host NodeBB?OpenShift offers a free tier on which you can set up NodeBB, and it's sufficient for small forums. There's a tutorial in the NodeBB docs. You can take a look at that
-
Who is using NodeBB?@aneeeshp Amazing! I love it when people embrace the Comic Sans-lord
-
Forum Traffic chart broken?Do you use a reverse proxy?
-
Redis memory usageThis'd been discussed many times before on this forum, so you may look at other topics for a reference.
I've personally only used MongoDB, but my forum is quite low on traffic, and I'd like to spare RAM for other things on my server
I remember @julian said that they use redis on this forum, but that they would certainly use mongodb + redis caching if they would do it over.
-
Using puTTy to retrieve a plugin..@MBFTOM You've installed it at the wrong location. It's installed in your root directory, whereas you should install it in the directory of the NodeBB installation (that is, where the starter script is also located). When you run "npm install [pluginname]" there, it'll work
Good luck!
-
What are the recommended Nginx settings@audreybest That depends on your Nginx configuration. When you only pass the traffic to your NodeBB instance, it will be served by the internal NodeBB HTTP server (through Nginx). When you add pointers to the locations of the static files on your filesystem, then it will be served by Nginx directly.
Using the configuration as in the link of @pichalite will be the second case.
-
Host NodeBB freeCheck OpenShift. They have a free tier offering 512MB RAM and 1GB storage. On the NodeBB docs there's an explanation on this.
-
Navbar TextCreate your own theme based on nodebb-theme-persona by making a copy of it. Give it a suitable name. Remove the classes
visible-xs-inline
from/templates/partials/menu.tpl
in your theme folder. That does the job