Skip to content

Iframely (Nodebb)

Solved Configure
40 4 7.4k 1
  • @jac said in Iframely (Nodebb):

    @phenomlab said in Iframely (Nodebb):

    So, if you have a link inserted and bound to a word, then that won’t be detected. This looks like quite a nice plugin, so it can stay !

    Absolutely, looks tons better!

    I don’t know about you mate but they have stopped working on my forum?

    Maybe It’s time to self host I do wonder if this would fix the issue.

    @jac yeah, stopped working for me also so I decided to self host. Was quite painful to setup but I got there in the end and need to put together a guide on how to do it.

    I’ve used a subdomain for this based on security requirements and would recommend anyone else looking to self host do the same. The self hosted begin does have some limitations, but works very well for what I need as it’s active on Sudonix

  • @jac yeah, stopped working for me also so I decided to self host. Was quite painful to setup but I got there in the end and need to put together a guide on how to do it.

    I’ve used a subdomain for this based on security requirements and would recommend anyone else looking to self host do the same. The self hosted begin does have some limitations, but works very well for what I need as it’s active on Sudonix

    @phenomlab said in Iframely (Nodebb):

    @jac yeah, stopped working for me also so I decided to self host. Was quite painful to setup but I got there in the end and need to put together a guide on how to do it.

    I’ve used a subdomain for this based on security requirements and would recommend anyone else looking to self host do the same. The self hosted begin does have some limitations, but works very well for what I need as it’s active on Sudonix

    That’s great mate, I’d also be looking to self host if it has worked out well. A guide will be very useful 😁.

  • @phenomlab said in Iframely (Nodebb):

    @jac yeah, stopped working for me also so I decided to self host. Was quite painful to setup but I got there in the end and need to put together a guide on how to do it.

    I’ve used a subdomain for this based on security requirements and would recommend anyone else looking to self host do the same. The self hosted begin does have some limitations, but works very well for what I need as it’s active on Sudonix

    That’s great mate, I’d also be looking to self host if it has worked out well. A guide will be very useful 😁.

    @jac said in Iframely (Nodebb):

    @phenomlab said in Iframely (Nodebb):

    @jac yeah, stopped working for me also so I decided to self host. Was quite painful to setup but I got there in the end and need to put together a guide on how to do it.

    I’ve used a subdomain for this based on security requirements and would recommend anyone else looking to self host do the same. The self hosted begin does have some limitations, but works very well for what I need as it’s active on Sudonix

    That’s great mate, I’d also be looking to self host if it has worked out well. A guide will be very useful 😁.

    Although at the moment I have no laptop or way or doing any of this so there is no rush.

  • I have seen Iframely have this result for example for URL link ?

    6fe9e309-1b35-4faa-963e-ecc17a7233d9-image.png

    It’s a freescript or not ?
    If it’s self hosted, he have no limits ?

    How does it work ?

    I would be very interested in using it on my forum, which is why I would like a little more explanation or why not a little tutorial from our friend @phenomlab ha ha 😉

  • I have seen Iframely have this result for example for URL link ?

    6fe9e309-1b35-4faa-963e-ecc17a7233d9-image.png

    It’s a freescript or not ?
    If it’s self hosted, he have no limits ?

    How does it work ?

    I would be very interested in using it on my forum, which is why I would like a little more explanation or why not a little tutorial from our friend @phenomlab ha ha 😉

    @DownPW said in Iframely (Nodebb):

    It’s a freescript or not ?

    Yes, it’s the free (self hosted) version

    https://iframely.com/docs/host

    Everything you need is in the above document 🙂

  • I read the docs a bit and everything is not very clear, especially on the nginx reverse proxy conf for example or the cache or PM2/forever…

    I need to do some test to fully understand

  • I read the docs a bit and everything is not very clear, especially on the nginx reverse proxy conf for example or the cache or PM2/forever…

    I need to do some test to fully understand

    @DownPW The reverse proxy is relatively simple. I’m using the below

            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:8061/;
                    proxy_redirect off;
    
                    # Socket.IO Support
                    proxy_http_version 1.1;
                    proxy_set_header Upgrade $http_upgrade;
                    proxy_set_header Connection "upgrade";
            }
    

    If you’re not running MemCached or Redis then you can ignore the cache part and just use the NodeJS defaults. I much prefer PM2 as this provides greater flexibility and control (in my view)

    Below output from pm2 status

    4f610c55-504e-42fd-83d4-9bb41139cef9-image.png

  • @DownPW The reverse proxy is relatively simple. I’m using the below

            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:8061/;
                    proxy_redirect off;
    
                    # Socket.IO Support
                    proxy_http_version 1.1;
                    proxy_set_header Upgrade $http_upgrade;
                    proxy_set_header Connection "upgrade";
            }
    

    If you’re not running MemCached or Redis then you can ignore the cache part and just use the NodeJS defaults. I much prefer PM2 as this provides greater flexibility and control (in my view)

    Below output from pm2 status

    4f610c55-504e-42fd-83d4-9bb41139cef9-image.png

    @phenomlab

    I have install iframely like the doc, no cache app, no reverse proxy with PM2 and I have not modify config file.

    Results? it does not work 😉

    b5d7357c-0e6e-4480-838c-9175996bfe65-image.png

    55cd28ad-7779-4937-a665-dfb7a3e7d9f0-image.png

    something I missing ?

  • what I don’t understand is how Iframely can interact with NodeBB. There is nothing to configure on the NodeBB side?

  • I have install Iframely nodebb plugin and setup with my local IP (because it’s a VM on no prod server) like this :

    dfcaa6bd-ef9d-4cf3-95ad-f055beb8926c-image.png

    Doesn’t work

  • I have install Iframely nodebb plugin and setup with my local IP (because it’s a VM on no prod server) like this :

    dfcaa6bd-ef9d-4cf3-95ad-f055beb8926c-image.png

    Doesn’t work

    @DownPW can you try removing the port and just use the IP address ?

  • what I don’t understand is how Iframely can interact with NodeBB. There is nothing to configure on the NodeBB side?

    @DownPW said in Iframely (Nodebb):

    what I don’t understand is how Iframely can interact with NodeBB. There is nothing to configure on the NodeBB side?

    We are using self-hosted iframely… Unfortunately, our developer is currently busy with relocation etc, therefore I cannot ask for more detail…

    But we have this as the endpoint address:

    http://0.0.0.0:8061/iframely?

    So, I guess we installed it as a subfolder at this port location in the same server? Maybe @phenomlab can tell it better 😄 sorry, I am not good at backend work 😄

  • @DownPW said in Iframely (Nodebb):

    what I don’t understand is how Iframely can interact with NodeBB. There is nothing to configure on the NodeBB side?

    We are using self-hosted iframely… Unfortunately, our developer is currently busy with relocation etc, therefore I cannot ask for more detail…

    But we have this as the endpoint address:

    http://0.0.0.0:8061/iframely?

    So, I guess we installed it as a subfolder at this port location in the same server? Maybe @phenomlab can tell it better 😄 sorry, I am not good at backend work 😄

    @crazycells typically, you do not need the port as that is handled and processed by the NGINX config. I have my instance running in a subdomain for security reasons with CORS headers adjusted to suit.

  • I have install Iframely nodebb plugin and setup with my local IP (because it’s a VM on no prod server) like this :

    dfcaa6bd-ef9d-4cf3-95ad-f055beb8926c-image.png

    Doesn’t work

    @DownPW from what I see, iFramely isn’t setup properly on your server as the port of 8061 does not appear to be listening. For example, see below for the response I get when trying to access the port.

    bddf233f-69cb-4169-9aea-3ccc85aead31-image.png

    Another possibility here (and a strong one in fact) is that you probably need to open this port on your firewall (perhaps iptables) and probably your router also (in terms of NAT).

  • @DownPW from what I see, iFramely isn’t setup properly on your server as the port of 8061 does not appear to be listening. For example, see below for the response I get when trying to access the port.

    bddf233f-69cb-4169-9aea-3ccc85aead31-image.png

    Another possibility here (and a strong one in fact) is that you probably need to open this port on your firewall (perhaps iptables) and probably your router also (in terms of NAT).

    @phenomlab

    I have open the port on my router:

    1c93d90e-0cec-44b3-9939-4025e28456c2-image.png

  • @phenomlab

    I have open the port on my router:

    1c93d90e-0cec-44b3-9939-4025e28456c2-image.png

    @DownPW right, but what about iptables on the server itself? The port isn’t responding which is the first hurdle to overcome.

  • I don’t know because I think you are connected to ssh, so I don’t see this

    grrr it’s a debian scratch and iptables is not installed by defaut

  • I don’t know because I think you are connected to ssh, so I don’t see this

    grrr it’s a debian scratch and iptables is not installed by defaut

    @DownPW what happens if you perform the same telnet command from the server itself ? If that responds, then the issue is possibly the NAT translation via the router.

    Fire example, if telnet 127.0.0.1 8061 connects, then the port is listening on localhost. If you try the same but with the public IP you have instead, then that’s a NAT issue (potentially)

  • very odd @phenomlab

    I can connect to telnet on server (local host) and externally (with my phone on 4g network = externally network) with public ip

    telnet privateIP 8061 is OK on the server
    telnet externalPublicIP 8061 is OK with my smartphone on 5G (externally network) with Termux app

    03a1fd88-f7c9-4fe2-805c-d78a63e7db17-image.png

    The NAT on my router and the server is OK on 8061 port

  • very odd @phenomlab

    I can connect to telnet on server (local host) and externally (with my phone on 4g network = externally network) with public ip

    telnet privateIP 8061 is OK on the server
    telnet externalPublicIP 8061 is OK with my smartphone on 5G (externally network) with Termux app

    03a1fd88-f7c9-4fe2-805c-d78a63e7db17-image.png

    The NAT on my router and the server is OK on 8061 port

    @DownPW very odd. Ok. I’ll take a look at this tomorrow morning but I do need root access (and password) to this server.


Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics
  • Opening links in nodebb widget

    Solved Configure nodebb
    6
    4 Votes
    6 Posts
    2k Views
    A more efficient way of including this would be to not over complicate it and leverage a standard iframe (providing the CSP headers of the remote site permit this) like below <iframe src="https://www.classmarker.com/online-test/start/?quiz=gag66aea7922f0a5" width="700" height="800"></iframe> This works first time every time on your site as intended.
  • Fixed background to nodebb forum

    Solved Configure nodebb
    25
    4 Votes
    25 Posts
    5k Views
    @Panda said in Fixed background to nodebb forum: Chatgpt told me the ::before method. Go figure
  • NodeBB: Consent page

    Solved Configure nodebb consent
    16
    4 Votes
    16 Posts
    4k Views
    @DownPW I still do not see any issues.
  • NodeBB: Creating pages

    Solved Configure nodebb create page
    9
    0 Votes
    9 Posts
    2k Views
    OK, I think I have figured out how to place a link in the footer which will click to a new page.
  • nodebb loading emojis

    Solved Configure nodebb emojis
    16
    1
    1 Votes
    16 Posts
    3k Views
    @DownPW sure. Let me have a look at this in more detail. I know nginx plus has extensive support for this, but it’s not impossible to get somewhere near acceptable with the standard version. You might be better off handling this at the Cloudflare level given that it sits in between the requesting client and your server.
  • Gettin Erors NodeBB

    Solved Configure nodebb eror
    7
    0 Votes
    7 Posts
    1k Views
    @phenomlab no forum is working goods. there is no eror message since yestarday.
  • Configure SMTP for Nodebb

    Solved Configure
    14
    5 Votes
    14 Posts
    2k Views
    @marusaky based on the work completed thus far (in relation to PM exchanges), I’m going to mark this completed. Sending email from the server itself works fine without issue, and DNS appears to be clean (valid SPF, DMARC, and DKIM records). It appears that only Gmail marks incoming messages from your domain as spam - perhaps because of the domain age, which there is nothing we can do to prevent this. Mail delivery to all other domains appears to work fine in al of my tests.
  • nodebb dropdown menu

    Solved Configure nodebb
    5
    1
    0 Votes
    5 Posts
    1k Views
    @phenomlab said in nodebb dropdown menu: @kurulumu-net You set it like the below example taken from this site [image: 1637939951821-aae36790-3257-4bb2-ad5a-0d744309876a-image.png] Which presents this [image: 1637939983445-77f47260-2941-4afe-9614-8e17dcfc8c19-image.png] Very interesting… I actually thought this wasn’t possible, as I remember it being asked in the NodeBB forum. Is this something new that’s been implemented? I’ll 100% be doing that when I’m on the laptop over the weekend.