Skip to content

How to install a self-hosted instance of iFramely for use with NodeBB

Configure
29 4 15.1k 1
  • @DownPW iFramely is multi threaded and runs as a cluster, so will spread itself across the amount of cores you have. If you run pm2 status you’ll see how many cores it’s using, plus the memory usage.

    I’ve never had an issue with it and I know that thousands of sites have it installed with no performance degradation. It scales very well and only seems to occupy a small selection of CPU and memory.

    wrote on last edited by
    #10

    Ok @phenomlab

    Thanks for your answer but with pm2 status command, I see a % of CPU used but not the number of CPU core used…

  • Ok @phenomlab

    Thanks for your answer but with pm2 status command, I see a % of CPU used but not the number of CPU core used…

    wrote on last edited by
    #11

    @DownPW how many cores do you have ?

  • @DownPW how many cores do you have ?

    wrote on last edited by
    #12

    @phenomlab

    What a loser I am lol 😵

    I configured only one core on my VM !!!

  • @phenomlab

    What a loser I am lol 😵

    I configured only one core on my VM !!!

    wrote on last edited by
    #13

    @DownPW OMG 🤦

  • wrote on last edited by DownPW
    #14

    ha ha, i’m tired voila 🙂

    you say this:

    if you are using Cloudflare, this particular port (8061) isn’t routable with the free plan, so something to be aware of

    @phenomlab
    I’m using a free plan from CloudFlare, will this bother me for use Iframely on my server?

  • ha ha, i’m tired voila 🙂

    you say this:

    if you are using Cloudflare, this particular port (8061) isn’t routable with the free plan, so something to be aware of

    @phenomlab
    I’m using a free plan from CloudFlare, will this bother me for use Iframely on my server?

    wrote on last edited by
    #15

    @DownPW only if you choose to not proxy the traffic (grey cloud only, which is just DNS rather than the default orange cloud)

  • ha ha, i’m tired voila 🙂

    you say this:

    if you are using Cloudflare, this particular port (8061) isn’t routable with the free plan, so something to be aware of

    @phenomlab
    I’m using a free plan from CloudFlare, will this bother me for use Iframely on my server?

    wrote on last edited by
    #16

    @DownPW you will win this war 🙂

  • wrote on last edited by DownPW
    #17

    @phenomlab

    A CNAME on Cloudflare is not sufficient ?

    like this :

    16e51b39-776a-43d8-81a8-0b072cb52b6a-image.png

  • @phenomlab

    A CNAME on Cloudflare is not sufficient ?

    like this :

    16e51b39-776a-43d8-81a8-0b072cb52b6a-image.png

    wrote on last edited by phenomlab
    #18

    @DownPW no. It needs to be an A record. CNAME is canonical meaning that traffic sent to it will land up at your main nginx site. The A record will sent headers which nginx can use to route the traffic correctly.

    CNAME records do not have this and will resolve to the underlying host which will cause you problems. Useful for WWW and non-WWW, but that’s about it.

    Essentially, it’s an alias and not a record in it’s own right.

  • @DownPW no. It needs to be an A record. CNAME is canonical meaning that traffic sent to it will land up at your main nginx site. The A record will sent headers which nginx can use to route the traffic correctly.

    CNAME records do not have this and will resolve to the underlying host which will cause you problems. Useful for WWW and non-WWW, but that’s about it.

    Essentially, it’s an alias and not a record in it’s own right.

    wrote on last edited by cagatay
    #19

    @phenomlab i think my ifamely started to not work i dont know why 😞 youtube embed not working 😞

    7b229e08-8c8f-4d9e-be5d-78a4f0bb1b37-image.png

    [PM2][ERROR] Process or Namespace iframely not found
    [PM2][WARN] Current process list is not synchronized with saved list. App iframely iframely differs. Type ‘pm2 save’ to synchronize.

  • wrote on last edited by phenomlab
    #20

    @cagatay is the iframely service started ? That error message would indicate it’s not running

  • @cagatay is the iframely service started ? That error message would indicate it’s not running

    wrote on last edited by
    #21

    @phenomlab as a result of ps -x i cant see iframely service pid id so i think its not working automaticly when i rebooted the server. How can i start it?

  • @phenomlab as a result of ps -x i cant see iframely service pid id so i think its not working automaticly when i rebooted the server. How can i start it?

    wrote on last edited by
    #22

    @cagatay try pm2 start pm2.json which needs to be executed from the directory of the iFramely domain where it is installed. See previous documentation I provided after the installation.

    A quicker route would be to reboot your VPS to see if that resolves the issue.

  • @cagatay try pm2 start pm2.json which needs to be executed from the directory of the iFramely domain where it is installed. See previous documentation I provided after the installation.

    A quicker route would be to reboot your VPS to see if that resolves the issue.

    wrote on last edited by
    #23

    @phenomlab
    d52f9baf-3989-4753-bda4-5065c81504b1-image.png

    hope everything is ok from now.

  • @cagatay try pm2 start pm2.json which needs to be executed from the directory of the iFramely domain where it is installed. See previous documentation I provided after the installation.

    A quicker route would be to reboot your VPS to see if that resolves the issue.

    wrote on last edited by cagatay
    #24

    @phenomlab when i reboot the vps nodebb and iframely not working auto 😞
    but manually everything is working fine right now.

  • @phenomlab when i reboot the vps nodebb and iframely not working auto 😞
    but manually everything is working fine right now.

    wrote on last edited by
    #25

    @cagatay ok, that needs looking at then as it seems it’s not configured properly. For now of course you can start it manually.

  • wrote on last edited by
    #26

    Hello @phenomlab

    I like your iframe :

    a414dfb3-db00-4dd1-a50b-3ef781deaea6-image.png

    Can you please provide your CSS code with me for Iframely Iframe ?

    Thanks in advance dude

  • Hello @phenomlab

    I like your iframe :

    a414dfb3-db00-4dd1-a50b-3ef781deaea6-image.png

    Can you please provide your CSS code with me for Iframely Iframe ?

    Thanks in advance dude

    wrote on last edited by
    #27

    @DownPW this was actually stolen from @crazycells (😁) and slightly modified, so I can’t really take the credit.

    His original response to the iFramely guide I posted contains the CSS he’s using is here

    https://sudonix.com/topic/331/how-to-install-a-self-hosted-instance-of-iframely-for-use-with-nodebb/2?_=1668364874877

  • phenomlab phenomlab referenced this topic on
  • @DownPW this was actually stolen from @crazycells (😁) and slightly modified, so I can’t really take the credit.

    His original response to the iFramely guide I posted contains the CSS he’s using is here

    https://sudonix.com/topic/331/how-to-install-a-self-hosted-instance-of-iframely-for-use-with-nodebb/2?_=1668364874877

    wrote on last edited by
    #28

    @phenomlab 👍 yeap, unfortunately, the original unpaid version of iframely takes up a huge space on the screen. These CSS codes make it better than normal. But of course, it is not as good as the original paid version of iframely 🙂

  • Hello @phenomlab

    I like your iframe :

    a414dfb3-db00-4dd1-a50b-3ef781deaea6-image.png

    Can you please provide your CSS code with me for Iframely Iframe ?

    Thanks in advance dude

    wrote on last edited by
    #29

    @DownPW it is the second post of this thread.

  • phenomlab phenomlab referenced this topic on

Related Topics
  • Create a self-hosted instance of NTFY

    Moved Guides ntfy build selfhost
    63
    9
    26 Votes
    63 Posts
    35k Views
    phenomlab
    @sebmegag hi. Welcome aboard! I’ve tried this on both iPhone and Android and it works fine. Did you double check the config you have?
  • Composer options on nodebb

    Solved Configure nodebb
    8
    1
    3 Votes
    8 Posts
    3k Views
    phenomlab
    @Panda You should be able to expose the CSS for these using F12 to get into console [image: 3591518c-e3a3-4ada-a43c-6b32a5e0359c-image.png] [image: a2b8ed46-4157-4ff2-85f0-576543380107-image.png] That should then expose the element once selected [image: 89d9c545-a47a-40d1-98f4-80cf3b958e8f-image.png] Here’s the below CSS you need based on the screenshot provided. .composer .formatting-bar .formatting-group li[data-format="picture-o"], .composer .formatting-bar .formatting-group li[data-format="spoiler"] { display: none; }
  • NodeBB: hCaptcha

    Solved Configure hcaptcha
    15
    2 Votes
    15 Posts
    4k Views
    phenomlab
    @mventures none that I know of. I don’t recall selecting these either for mine.
  • nodebb loading emojis

    Solved Configure nodebb emojis
    16
    1
    1 Votes
    16 Posts
    6k Views
    phenomlab
    @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.
  • restarting nodebb on boot

    Unsolved Configure nodebb
    3
    1 Votes
    3 Posts
    2k Views
    phenomlab
    @eeeee said in restarting nodebb on boot: can I just run nodebb under nodemon for auto restarts? It’s a better method. Nodemon just looks for file system changes and would effectively die if the server was rebooted meaning you’d have to start it again anyway. Systemd is the defacto standard which is how the operating system interacts in terms of services, scheduled tasks etc.
  • MailGun Not Working NodeBB

    Solved Configure mail mailgun
    6
    1 Votes
    6 Posts
    2k Views
    cagatay
    @phenomlab did it i did not create smtp user on mailgun. everything is working now. [image: 6cc6061f-ed5d-41f6-8eb7-5d98f98b3706-image.png]
  • installing flarum with plesk

    Solved Configure flarum
    78
    26 Votes
    78 Posts
    39k Views
    Hari
    @phenomlab thanks a lot, have a nice day
  • Iframely (Nodebb)

    Solved Configure
    40
    4 Votes
    40 Posts
    17k Views
    phenomlab
    @DownPW This is now resolved. The issue was an incorrect URL specified in the Nodebb plugin. I’ve corrected this, and now it works as intended.