HARIOM VASHISTH
Posts
-
Free HTTPS for NodeBB -
production setup with nginx -
Run NodeBB with PM2-
Automatic Restart on exceptions
-
On Boot App restart
-
Monitor and Analyse App
-
Easy Mangement
Follow this guide (optimized for the production server):
https://blog.cloudboost.io/lift-nodejs-app-with-pm2-b07ebbfce2e7 -
-
NodeJS, MongoDB, PM2 and NgInx installation for NodeBBAll in One, Easy to understand β production ready guide for beginners and professionals.
NodeJS, MongoDB, PM2 and NGINX installation and configuration for production serverβββubuntu 16.04
-
Console erros after 1.6.1 setupSOLVED
Few permission modifications required:
It Works!
sudo chown -R $USER:$GROUPS NodeBB/
sudo chmod -R 770 build/
-
v1.6.0 permission problems after upgrade/updateIt Works!
sudo chown -R $USER:$GROUPS NodeBB/
sudo chmod -R 770 build/
-
Console erros after 1.6.1 setupConsole errors after fresh Nodebbv1.6.1 setup
NgInx Configurations:
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_redirect off;
# Socket.io Support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; -
Console errors after upgradeRe: browser console errors after v1.6.0 upgrade
After this config:
location ~ ^/assets/(.*) {
root /var/www/html/nodebb/;
try_files /build/public/$1 /public/$1 @nodebb;
types {
application/javascript jst;
text/css css;
}
}I am getting these issues:
Console logs:
Refused to execute script from 'https://dreamalarm.in/assets/nodebb.min.js?v=fvp3og7shma' because its MIME type ('application/octet-stream') is not executable, and strict MIME type checking is enabled.
(index):1 Refused to execute script from 'https://dreamalarm.in/assets/vendor/jquery/timeago/locales/jquery.timeago.en.js' because its MIME type ('application/octet-stream') is not executable, and strict MIME type checking is enabled.
(index):615 Uncaught ReferenceError: define is not defined
at (index):615
(anonymous) @ (index):615
(index):659 Uncaught ReferenceError: require is not defined
at (index):659 -
Composer error in v1.6.015/9 19:06:43 [18329] - error: TypeError: tags.concat is not a function
at Object.plugin.addPrefetchTags [as method] (/var/www/html/nodebb/node_modules/nodebb-plugin-composer-default/library.js:61:14)
at /var/www/html/nodebb/src/plugins/hooks.js:123:12
at /var/www/html/nodebb/node_modules/async/dist/async.js:2489:9
at replenish (/var/www/html/nodebb/node_modules/async/dist/async.js:946:17)
at /var/www/html/nodebb/node_modules/async/dist/async.js:950:9
at eachOfLimit (/var/www/html/nodebb/node_modules/async/dist/async.js:975:24)
at /var/www/html/nodebb/node_modules/async/dist/async.js:980:16
at Object.reduce (/var/www/html/nodebb/node_modules/async/dist/async.js:2488:5)
at fireFilterHook (/var/www/html/nodebb/src/plugins/hooks.js:115:9)
at Object.Plugins.fireHook (/var/www/html/nodebb/src/plugins/hooks.js:96:4)
at links (/var/www/html/nodebb/src/meta/tags.js:104:12)
at /var/www/html/nodebb/node_modules/async/dist/async.js:3853:24
at replenish (/var/www/html/nodebb/node_modules/async/dist/async.js:946:17)
at iterateeCallback (/var/www/html/nodebb/node_modules/async/dist/async.js:931:17)
at /var/www/html/nodebb/node_modules/async/dist/async.js:906:16
at /var/www/html/nodebb/node_modules/async/dist/async.js:3858:13Any help would be appreciated , my forum is down until i solve this problem
-
Post Editor : Must Have Functionalitiesafter using nodebb a lot , i strongly feel that users needs few features while writing a post using nodebb editor.
- Title leading a Sub-Title
- Heading - h1-h6
- blockquote
-
What library or approach used for handling background processesI need to know which library or approch is best for managing background services in nodejs.
-
NodeBB v1.5.2Awesome
-
Happy 150th Birthday Canadacheers Congratulations - NodeBB
-
Installation on fresh Ubuntu 16 -
Clustered nodeBB on Apacheinsecure web-sockets doesn't work with secure network(https)
Nginxserver {
listen 443 ssl;
ssl on;
blah blah blah...
location = /socket {
proxy_pass http://socket;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
proxy_send_timeout 1d;
proxy_read_timeout 1d;
}
}
upstream socket {
server 127.0.0.1:27960;
}Apache
enable these modules:
-
mod_proxy.so
-
mod_proxy_wstunnel.so
Add this in VirtualHost File:
ProxyPass /wss2/ ws://domain.com:port_number/
Use this URL in your JavaSscript call when you want a WSS connection:
var ws = new WebSocket("wss:/socket_url.mydomain.org/wss2/NNN");
Note: Change domain, IP and ports as per your server configuartions.
-
-
Clustered nodeBB on Apache@esteban-constante
I am writing an article on NodeBB deployment that will guide you -
Install nodeBB fail..Help me,please.!!!RAM issue NPM common issue , for solving this use add swap
-
Clustered nodeBB on Apache@adam-poniatowski said in Clustered nodeBB on Apache:
clustering
@Esteban-Constante
NodeBB Utilise clusteringNodeBB is a node app, kindly refer NodeBB documentation for Scalability
https://nodebb.readthedocs.io/en/latest/scaling/index.htmlotherwise run NodeBB with PM2 on cluster mode:
here is the command pm2 start app.js -i 0
The -i or instances option can be:
-
0 to spread the app across all CPUs
-
-1 to spread the app across all CPUs - 1
-
number to spread the app across number CPUs
@Esteban-Constante if you want to choose @Adam-Poniatowski methodology then use some proxy server for load balancing ex. Nginx or Ha-Proxy
-
-
force https@tango said in force https:
Amazon Load Balancer
Lift your nodebb app with PM2 and serve it on 443 if possible btw on 80 it's possible , no other way to reverse proxing without application server.
If you hosted everything on single EC2 instance then i personally recommend you to use Nginx along with PM2 and if you opt this option we have better answers.
-
Cannot connect to packages.nodebb.org from VPSThanks , As a member of third party developer i will assist you here, need clarification so that i can help you
-
VPS OS ?
-
VPS public IP ?
-