Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. j.b. o.
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 21
    • Best 3
    • Groups 0

    j.b. o.

    @j.b. o.

    3
    Reputation
    809
    Profile views
    21
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    j.b. o. Unfollow Follow

    Best posts made by 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.
    • 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.
    • 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.

    Latest 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:

      root@server01:~/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.