• HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    Menu
    • HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    Get in touch
    Get in touch
    Menu
    • HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    • Sign in
    • Start free trial
    • Get in touch
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    • Documentation
      • Home
      • Read API
      • Write API
      • Plugin Development
    1. Home
    2. j.b. o.
    3. Posts
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 21
    • Best 3
    • Controversial 0
    • Groups 0

    Posts made by j.b. o.

    • RE: Secure images for NodeBB with external camo

      @lenovouser thank you for the tutorial.
      You say you used to run it in docker. If you have time, could you indicate the step?
      I start to understand docker so i think it good exercise.

      I did: git clone https://github.com/atmos/camo.git
      I get a folder camo. Then:
      cd camo
      docker build -t camo .

      but it fails on

      Step 3 : WORKDIR /app
       ---> Running in fd2fdc6ebac2
      INFO[0126] Error getting container fd2fdc6ebac25dc5eeb8b94ea2b77a3f52c8565163d38599827628b6aaoe3e45 from driver devicemapper: Error mounting '/dev/mapper/docker-8:0-149667-fd2fdc6ebac25dc5eeb8b94ea2b77a3f52c8565163d3859982762a36aa30c22a' on '/var/lib/docker/devicemapper/mnt/fd2fdc6ebac25dc5eeb8b94ea2b77a3f52c8565163d38599827628b6aa30c22a': no such file or directory 
      

      When i check the image:

      [email protected]:~/docker/camo# docker ps -l
      CONTAINER ID        IMAGE                                                                     COMMAND                CREATED             STATUS              PORTS               NAMES
      fd2fdc6ebac2        6b07ff95cd74071f19d9d1d82b52ef8c166bc5779136c719eaabf4e367d60dcf:latest   "/bin/sh -c '#(nop)    16 seconds ago                                              ecstatic_elion 
      

      Thank you in advance for any help.

      posted in Tutorials
      J
      j.b. o.
    • RE: install camo for nodebb-plugin-iframely

      @lenovouser thank you

      To understand, that the upstream configuration change?

      It seems to perfectly fix the problem. Unfortunatly when i try to load these image:

      https://camo.domain.com/my_key?url=https://www.howtoforge.com/images/linux_screen/2.png

      I get not found

      https://camo.domain.com/my_key/https://www.howtoforge.com/images/linux_screen/2.png

      I get this image cannot be display because it contains errors

      Idem with this file: http://puppaleslie.free.fr/favicon.ico

      Could it be an issue? In this case i will open a ticket on github.

      About screen and forever, to understand well:

      • forever is the reboot the process at a crash
      • screen is to run multi terminal "session", so it allow to let a terminal running with the camo app

      About screen, could it be done the same with passing the option CAMO_KEEP_ALIVE to true on running?

      Thanks,
      jB

      posted in Technical Support
      J
      j.b. o.
    • RE: install camo for nodebb-plugin-iframely

      @lenovouser thank you very much for the answer

      So i have generate a key:
      pwgen -sB 64

      Then run:
      PORT=8081 CAMO_KEY="my_key" node server.js

      In the terminal i get:

      SSL-Proxy running on 8081 with pid:11313 version:2.3.0.
      

      So it seems to work, doesn't it?

      Unfortunatly when i try the url for example:
      https://camo.domain.com/my_key?url=http://puppaleslie.free.fr/favicon.ico

      I always get an error 502 bad getaway
      I guest i have a problem with my host config.

      Still investigating, thank you for the help.
      jB

      posted in Technical Support
      J
      j.b. o.
    • install camo for nodebb-plugin-iframely

      Hello,

      I try to install on my server camo (github) which is very usefull for iframely for example.
      As i am starting with node app, i am a little lost.

      The steps i did:

      • Create a domain: camo.domain.com and configure DNS > ok

      • Into a folder ~/nginx/html/camo.domain.com > ok

          git clone https://github.com/atmos/camo.git
          cd camo
          npm install
      
      • Configure Camo?? > KO
        In the folder, there is a file server.js but it doesn't seem there is a way to configure the variables.

      • Create a host and enabled it > ok

          upstream camo.domain.com {
                  ip_hash;
                  server localhost:8081;
                  keepalive 8;
          }
          server {
      
                  server_name camo.domain.com;
                  client_max_body_size 20m;
      
                  listen 80;
                  listen [::]:80;
                  listen 443 ssl;
      
                  # config ssl
                  ssl_certificate /etc/letsencrypt/live/camo.domain.com/fullchain.pem;
                  ssl_certificate_key /etc/letsencrypt/live/camo.domain.com/privkey.pem;
                  fastcgi_param HTTPS on;
                  keepalive_timeout    70;
                  ssl_session_cache    shared:SSL:10m;
                  ssl_session_timeout  10m;
      
                  # add Strict-Transport-Security to prevent man in the middle attacks
                  add_header Strict-Transport-Security "max-age=31536000";
      
                  # Logs
                  access_log /var/log/camo.access_log;
                  error_log /var/log/camo.error_log;
      
                  # redirect HTTP to HTTPS
                  if ($scheme = http) {
                          return 301 https://$server_name$request_uri;
                  }
      
                  location / {
                          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_pass https://camo.domain.com/;
                          proxy_redirect off;
      
                          # Socket.IO Support
                          proxy_http_version 1.1;
                          proxy_set_header Upgrade $http_upgrade;
                          proxy_set_header Connection "upgrade";
                  }
      
                  # Exclude from the logs to avoid bloating when it's not available
                  include drop.conf;
      
          }
      
      • then i suppose i have to do node server.js

      Because i don't achieve the configuration, logically when i go to https://camo.domain.com/, i get an 502 error bad getaway.

      How can i configure efficiently Camo?
      And do i get the right way to finish well the install?
      Then can i add forever server.js ?

      Thank you in advance for any help.
      jB

      posted in Technical Support
      J
      j.b. o.
    • RE: [nodebb-plugin-iframely] IFramely Embeds

      Hello,

      The plugin was updated. The problem seems to be solved.
      Meanwhile, the configuration page change a little.

      I have to clarify some configuration but it is a big step, thank you very much for the update.

      jB

      posted in NodeBB Plugins
      J
      j.b. o.
    • RE: theme creation + git

      @yariplus @frissdiegurke thank you very much for these informations. Now i have to test it.

      posted in Technical Support
      J
      j.b. o.
    • RE: [nodebb-plugin-iframely] IFramely Embeds

      @a_5mith i have tried the both, i think.

      I check and i notice my config option are not saved.
      I can fill the address, http://iframely.custom.com/iframely or http://iframely.custom.com (i'm not sure) for example. I save the page. I reload nodebb, the page, clean the cache. My config is still saved.
      But when i came back a day later, in another session, the page is still empty.

      Could it be a problem wth the plugin install?
      Or nodebb?

      [edit] i confirm the config is not save. I don't have the notification. how can i check the database to verify if the configuration was solved?

      posted in NodeBB Plugins
      J
      j.b. o.
    • RE: theme creation + git

      @yariplus thank you for this clear answer. I understand better how the package works

      As i understand i have to publish again each time i would like to test a modification. If it takes about one hour, it's not a very efficient workflow, is it? You should not test a lot before publishing.

      posted in Technical Support
      J
      j.b. o.
    • RE: [nodebb-plugin-iframely] IFramely Embeds

      @julian after remove some plugin, reinstall and restart the forum, i get the configuration page.

      I configure my api adress (http://iframely.custom.com/iframely) and try to test it in the post editor when the api is alive:
      http://iframely.custom.com/iframely?url=https://soundcloud.com/tontondavidmusic/medley-oct-2014 > it works

      So i add directly in a post the url like that:
      [texte du lien](https://soundcloud.com/jackedradio/afrojack-presents-jacked-radio-week-23)
      https://soundcloud.com/tontondavidmusic/medley-oct-2014

      Nothing append. Have i missed something?
      Could it be useful to have a button in the editor?

      jB

      posted in NodeBB Plugins
      J
      j.b. o.
    • theme creation + git

      Hello,

      I try to build a very light child-theme for persona.
      I would like to use git for child-theme versioning.

      So i create a folder nodebb-theme-persona-child in node_modules and init git in it qs i use to do with apache.
      On local, i configure a remote server to push to the folder.

      As i was removing other plugins, i notice lots of error relative to my git folder.
      I understand, we have to use npm to install package. As i am new on node.js, i don't understand how to make it work: use git for versioning and to deploy in production for test.

      Thank you in advance for any help to find the good way to work.
      jb

      posted in Technical Support
      J
      j.b. o.
    • RE: [solved] Remove plugin manually and 502 error >> plugin-sso-wordpress bug

      @a_5mith you are right but the plugin seems to work.

      posted in Technical Support
      J
      j.b. o.
    • RE: [nodebb-plugin-iframely] IFramely Embeds

      Hello,

      A simple question:
      does a configuration page exist for the plugin?

      I disable all the possible plugins in conflit like nodebb-embed-videos or nodebb-plugin-soundcloud then i have activate this plugin... And i was surprised, i don't find a way to configure the api or the domain to use. Moreover, i don't see any new button in the post editor?

      I have trying to install iframely on my own. It seems to work but it unfortunately shut down when i quit the terminal for now. I'm beginning with nginx and node.js, and i don't understand why nodebb is remaning alive therefore iframetly seems to shut down.

      It could be a really good addition because all the embed plugins don't work all well.

      Thank you in advance for the help.
      jB

      posted in NodeBB Plugins
      J
      j.b. o.
    • RE: Profil option : hide me when i am online

      @pichalite it works well. Thank you for the reply.

      posted in Feature Requests
      J
      j.b. o.
    • custom settings for template

      Hello,

      I start to make a child-template for persona.
      The modifications will be light as some style change, add widget zones for categories, etc.

      I also would like to use a svg as logo and i would like to respect the flexibility and the back office structure.

      As i begin, i would like to know, is it possible to add field into settings page from the template?
      For my example, i would like to add an additionnal upload field into the general settings page?
      One for the svg, the other one for the png fallback.

      Another idea, add a check box for a no index option?
      Maybe i have to creat a plugin, maybe it is an option in headers on the advance settings page (i don't understand what is it about?).

      Thank you in advance for any help.
      jB

      posted in Technical Support
      J
      j.b. o.
    • RE: [solved] Remove plugin manually and 502 error >> plugin-sso-wordpress bug

      After the last plugin installations, i get an 502 Bad Gateway error. The last plugin install before the error: plugin-sso-wordpress, plugin-ns-utils, plugin-ns-points.

      First, i try to disable manually plugins without success:
      # ./nodebb remove nodebb-plugin-ns-utils
      # ./nodebb remove nodebb-plugin-ns-points

      Then i try to remove them:
      npm remove nodebb-plugin-ns-utils

      Unssuccessful til i remove nodebb-plugin-sso-wordpress
      npm remove nodebb-plugin-sso-wordpress

      In fact, i notice this into the log:

      20/1 06:56 [2752] - error: TypeError: OAuth2Strategy requires a clientID option
          at new OAuth2Strategy (/usr/share/nginx/html/le.club.systemes.sonores.rocks/node_modules/passport-oauth2/lib/strategy.js:83:34)
          at Object.OAuth.getStrategy [as method] (/usr/share/nginx/html/le.club.systemes.sonores.rocks/node_modules/nodebb-plugin-sso-wordpress/library.js:78:43)
          at /usr/share/nginx/html/le.club.systemes.sonores.rocks/src/plugins/hooks.js:103:12
          at /usr/share/nginx/html/le.club.systemes.sonores.rocks/node_modules/async/lib/async.js:375:13
          at iterate (/usr/share/nginx/html/le.club.systemes.sonores.rocks/node_modules/async/lib/async.js:262:13)
          at /usr/share/nginx/html/le.club.systemes.sonores.rocks/node_modules/async/lib/async.js:274:29
          at /usr/share/nginx/html/le.club.systemes.sonores.rocks/node_modules/async/lib/async.js:44:16
          at /usr/share/nginx/html/le.club.systemes.sonores.rocks/node_modules/async/lib/async.js:377:17
          at /usr/share/nginx/html/le.club.systemes.sonores.rocks/node_modules/nodebb-plugin-sso-twitter/library.js:69:4
          at /usr/share/nginx/html/le.club.systemes.sonores.rocks/src/meta/settings.js:12:4
      3 restarts in 10 seconds, most likely an error on startup. Halting.
      

      Bye,
      jB

      posted in Technical Support
      J
      j.b. o.
    • RE: Uploading of Gifs

      @Jord I get the same error and i'm still investigating.

      posted in Bug Reports
      J
      j.b. o.
    • [solved] Remove plugin manually and 502 error >> plugin-sso-wordpress bug

      Hello,

      I am starting a new small forum so i test some plugins.
      After the last plugin installations, i get an 502 Bad Gateway error. The last plugin install before the error: plugin-sso-wordpress, plugin-ns-utils, plugin-ns-points.

      My config: ubuntu 14.04 + nginx + mongodb

      I can successfully start nodebb
      ./nodebb start

      But after the first page reload, i get an 502 error and i get:

      [email protected]:/usr/share/nginx/html/le.club.systemes.sonores.rocks# events.js:141
           throw er; // Unhandled 'error' event
           ^
      
      Error: write after end
         at writeAfterEnd (_stream_writable.js:159:12)
         at LogStream.Writable.write (_stream_writable.js:204:5)
         at Socket.ondata (_stream_readable.js:528:20)
         at emitOne (events.js:77:13)
         at Socket.emit (events.js:169:7)
         at readableAddChunk (_stream_readable.js:146:16)
         at Socket.Readable.push (_stream_readable.js:110:10)
         at Pipe.onread (net.js:523:20)
      

      When i check the log:
      ./nodebb log

      I get:

      19/1 07:07 [1105] - warn: [meta/dependencies] Bundled plugin nodebb-plugin-soundpack-default not found, skipping dependency check.
      19/1 07:07 [1105] - warn: [socket.io] Clustering detected, you are advised to configure Redis as a websocket store.
      19/1 07:07 [1105] - warn: [plugins/nodebb-plugin-sso-google] Hook `filter:user.delete` is deprecated, please use `static:user.delete` instead.
      19/1 07:07 [1105] - warn: [plugins/nodebb-plugin-sso-twitter] Hook `filter:user.delete` is deprecated, please use `static:user.delete` instead.
      
      19/1 07:07 [1105] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run `./nodebb reset -p PLUGINNAME` to disable it.
       * nodebb-plugin-recent-cards
       * nodebb-plugin-desktop-notifications
      
      19/1 07:36 [1391] - info: [plugins/spam-be-gone] Settings loaded
      19/1 07:36 [1391] - error: TypeError: OAuth2Strategy requires a clientID option
      

      I have try to remove the last plugin:

      [email protected]:/usr/share/nginx/html/le.club.systemes.sonores.rocks# ./nodebb reset -p plugin-ns-points
      19/1 07:54 [1593] - warn: You have no mongo password setup!
      19/1 07:54 [1593] - info: [database] Checking database indices.
      19/1 07:54 [1593] - warn: [reset] Plugin `plugin-ns-points` was not active on this forum
      19/1 07:54 [1593] - info: [reset] No action taken.
      

      Is the problem due to the plugin? The configuration?
      I don't understand because i have and a password to mongodb.

      Sorry i'm strating with node.js and i am lost because i am not able to restart the forum.

      Thank you for advance for any help.
      jB

      posted in Technical Support
      J
      j.b. o.
    • RE: Profil option : hide me when i am online

      You are right.
      I have to test if the option is save for the next connexion.

      Thank you for the tip.
      jB

      posted in Feature Requests
      J
      j.b. o.
    • Profil option : hide me when i am online

      Hello,

      I have not notice if an option exist in the profile page to allow the user to be hidden from other users when he is online. It could be a good addition for privacy that we can find in other forum system.

      Anyway, thank you for the nodebb.
      jB

      posted in Feature Requests
      J
      j.b. o.
    • RE: Server Crash (0.8.2) when uploading topic thumbnail

      Same error with persona theme and nodebb 0.9.3.

      [edit] the error
      https://le.club.systemes.sonores.rocks/api/topic/thumb/upload
      500 Internal Server Error
      w and h must be numbers

      posted in General Discussion
      J
      j.b. o.

    Get Started

    • Product
    • Pricing

    Resources

    • Demo Site
    • Answers
    • Docs
    • Bug Bounty

    Company

    • About
    • Blog
    • Contact
    Start Free Trial
    Github Facebook Instagram Twitter
    © 2014 – 2022 NodeBB, Inc. — Made in Canada.
    • Terms
    • Privacy
    • GDPR
    • DMCA
    • Contact
    Menu
    • Terms
    • Privacy
    • GDPR
    • DMCA
    • Contact