Is there any way I can debug the plugin to see what is the exact url which is getting or what is the response?
Peter-Zoltan Keresztes
Posts
-
[nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget) -
nodebb-plugin-sso-facebook issue@julian I confirm. It is fixed.
-
nodebb-plugin-sso-facebook issueI tried that. then when I have activated and reloaded the plugin the nodebb quit with the error above.
-
What happened to [nodebb-plugin-2factor]?@julian Ah ok. It's good to know that is not on the nodebb side.
-
nodebb-plugin-sso-facebook issueHello, I have installed the nodebb-plugin-sso-facebook via npm and when I have configured it I have saved it without having a password. Now if I try to start up my nodebb I am getting the following error and I cannot back to enter the password.
18/12 09:37 [5531] - error: TypeError: OAuth2Strategy requires a clientSecret option at Strategy.OAuth2Strategy (/var/www/html/NodeBB/node_modules/nodebb-plugin-sso-facebook/node_modules/passport- facebook/node_modules/passport-oauth2/lib/strategy.js:84:38) at new Strategy (/var/www/html/NodeBB/node_modules/nodebb-plugin-sso-facebook/node_modules/passport-facebook/lib/strategy.js:55:18) at Object.Facebook.getStrategy (/var/www/html/NodeBB/node_modules/nodebb-plugin-sso-facebook/library.js:56:17) at /var/www/html/NodeBB/node_modules/nodebb-plugin-sso-facebook/library.js:51:14 at /var/www/html/NodeBB/node_modules/nodebb-plugin-sso-facebook/library.js:44:4 at /var/www/html/NodeBB/src/meta/settings.js:12:4 at try_callback (/var/www/html/NodeBB/node_modules/redis/index.js:573:9) at RedisClient.return_reply (/var/www/html/NodeBB/node_modules/redis/index.js:661:13) at ReplyParser.<anonymous> (/var/www/html/NodeBB/node_modules/redis/index.js:309:14) at ReplyParser.EventEmitter.emit (events.js:95:17) [cluster] Child Process (5531) has exited (code: 1, signal: null)
Is there any way I can reset the configuration of the plugin so that I can have again empty fields?
-
[nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget)Any other suggestion which might help me make this plugin fully work?
-
What happened to [nodebb-plugin-2factor]?@julian said:
Please update to latest master and use 2factor v1.1.6, thanks!
reply
I did that but still getting the same invalid token error.
-
What happened to [nodebb-plugin-2factor]?Working fine on this forum, however is not working on my own one.
-
What happened to [nodebb-plugin-2factor]? -
[Help install] 2 forums on same serverYou might want to check the documentation. Use google to find it.
-
[Help install] 2 forums on same server@djcyry Yes the database port does not change just the database itself. You can use 0 for first site and 1 for the second
-
[Help install] 2 forums on same serverI don't know how to setup with apache cause I never use apache but if you want to try with nginx you could paste your nginx configuration
also your config.js while you can modify the identifier from the config.
-
[Help install] 2 forums on same server@djcyry Make sure you have it in /etc/nginx/sites-enabled/default as well. That's OK. I personally prefer to have different configuration file for different domains.
-
[Help install] 2 forums on same serverHello,
First you need to create a config file on nginx for the first forum where you need to have an nginx config looking something like this:
server { listen 80; server_name example.com; #charset koi8-r; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-Nginx-Proxy true; proxy_pass http://127.0.0.1:4567; proxy_redirect off; # Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } }
then you need to download again the nodebb on a different folder, Run the ./nodebb setup script and configure it with a different port and a different database then you copy the nginx config change the domain name and the port in the proxy_pass option and restart the nginx.
-
[nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget)@Peter-Zoltan-Keresztes I have updated the proxy_pas config to http://127.0.0.1:4567/comments or /comments/ no change. No matter what I do I am getting the same warning message for most of the blog posts while for some of them is working fine.
-
[nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget)I have updated my nginx config to match the documentation and my nginx config looks like this:
server { listen 80; server_name z0z0.tk www.z0z0.tk; return 301 $scheme://z0z0.me$request_uri; } server { listen 80; server_name z0z0.me; #charset koi8-r; access_log /var/log/nginx/z0z0/access.log main; error_log /var/log/nginx/z0z0/error_log; location / { # add_header 'Acess-Control-Allow-Origin' 'http://z0z0.me'; # add_header 'Access-Control-Allow-Credentials' 'true'; # add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; # add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type, DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Mx-ReqToken,X-Requested-With'; proxy_set_header X-Real-IP $remote_addr; proxy_set_header HOST $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://127.0.0.1:2369; proxy_redirect off; } location /comments { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-Nginx-Proxy true; proxy_pass http://127.0.0.1:4567; proxy_redirect off; # Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } }
And it still not working. I am getting the same error.
-
What happened to [nodebb-plugin-2factor]?Hello, I am trying to scan the QR code using Google Authenticator or Authy apps using an iphone but I am getting the error Invalid token. Is there any specific app that is needed?
-
[nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget)blog url is http://z0z0.me nodebb url http://z0z0.me/comments
Full error on the console:
16/12 18:22 [1593] - warn: [nodebb-plugin-blog-comments] Origin (undefined) does not match hostUrls: http://z0z0.me 16/12 18:26 [1593] - warn: [nodebb-plugin-blog-comments] Origin (undefined) does not match hostUrls: http://z0z0.me 16/12 18:28 [1593] - warn: [nodebb-plugin-blog-comments] Origin (undefined) does not match hostUrls: http://z0z0.me 16/12 18:28 [1593] - warn: [nodebb-plugin-blog-comments] Origin (undefined) does not match hostUrls: http://z0z0.me 16/12 18:30 [1593] - warn: [nodebb-plugin-blog-comments] Origin (undefined) does not match hostUrls: http://z0z0.me 16/12 18:30 [1593] - warn: [nodebb-plugin-blog-comments] Origin (undefined) does not match hostUrls: http://z0z0.me 16/12 18:32 [1593] - warn: [nodebb-plugin-blog-comments] Origin (undefined) does not match hostUrls: http://z0z0.me
Full nginx config:
server { listen 80; server_name z0z0.me; #charset koi8-r; access_log /var/log/nginx/z0z0/access.log main; error_log /var/log/nginx/z0z0/error_log; location / { add_header 'Acess-Control-Allow-Origin' 'http://z0z0.me'; # add_header 'Access-Control-Allow-Credentials' 'true'; # add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; # add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type, DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Mx-ReqToken,X-Requested-With'; proxy_set_header X-Real-IP $remote_addr; proxy_set_header HOST $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://127.0.0.1:2369; proxy_redirect off; } location /comments { # set $cors ''; # if ($cors = 'true') { # add_header 'Access-Control-Allow-Origin' "*"; # add_header 'Access-Control-Allow-Credentials' 'true'; # add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; # add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type, DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Mx-ReqToken,X-Requested-With'; # } # if ($request_method = 'OPTIONS') { # return 204; # } proxy_set_header X-Real-IP $remote_addr; proxy_set_header HOST $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://127.0.0.1:4567; proxy_redirect off; } }
-
[nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget)I did the change to:
location / { add_header 'Access-Control-Allow-Origin' "http://z0z0.me"; proxy_set_header X-Real-IP $remote_addr; proxy_set_header HOST $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://127.0.0.1:2369; proxy_redirect off; }
But still not able to get it working.
-
[nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget)@sanatisharif I did that. the Access-Control has to be on the location / which is the blog or /comments which is the nodebb?