• Hi all,

    I've been using iframely (cloud API) for a while and have now exhausted their free plan, so decided to go down the self host route. I've set everything up as per https://iframely.com/docs/host and the instance is running. I've then changed the plugin settings to point to the domain of https://media.mydomain.com (my forum is hosted on https://mydomain.com as the root).

    Everything seems to "work" in the sense that I can see iframely logging requests, but nothing is being rendered in the front end.

    Anyone else also self hosting who can provide some insights here ?

    Much appreciated.

    Thanks

  • Global Moderator Plugin & Theme Dev

    Hmm are you getting any errors on the front end or in the server logs? Does it look like the plugin just isn't working, or that it's only partially working.


  • @pitaj nothing in the console, and nothing really in the NodeBB logs either. The plugin just looks as though it doesn't do anything, but if I replace the self hosted URL with the cloud API key, everything works as intended.

    Log from self hosted iframely

    -- [21-12-19 23:27:15]:845525 162.55.215.60 - Using cache for /iframely https://www.hotukdeals.com/deals/6-months-unlimited-access-to-keepsolid-vpn-with-code-at-keepsolid-3850424?utm_source=mappshare&utm_medium=referral&utm_content=3850424&utm_campaign=2021-12-15
    -- [21-12-19 23:27:16]:845525 162.55.215.60 - Loading /iframely for https://www.hotukdeals.com/deals/keepsolid-vpn-unlimited-lifetime-subscription-5-devices-ps1285-with-code-at-stacksocial-3844217
    -- [21-12-19 23:27:16]:845525 162.55.215.60 - Loading /iframely for https://www.safehome.org/vpn/keepsolid/reviews
    -- [21-12-19 23:27:55]:845525 162.55.215.60 - Loading /iframely for https://content.sudonix.com/securing-your-webserver-against-common-attacks
    -- [21-12-19 23:30:19]:845525 162.55.215.60 - Loading /iframely for https://content.sudonix.com/security-or-just-obscurity
    -- [21-12-19 23:30:39]:845525 162.55.215.60 - Loading /iframely for https://content.sudonix.com/think-10-000-hours-makes-an-expert-it-doesnt
    

    Worth noting that I have set the iframely self hosted URL to https://media.sudonix.com/iframely and https://media.sudonix.com/oembed. Sadly, neither work. Removing both and just using the iframely root URL also does nothing.


  • @PitaJ any thoughts or ideas ? Similarly, if anyone else has any pearls of wisdom I'd appreciate it.

  • Referenced by  phenomlab phenomlab 

  • @PitaJ I do see this in the plugin settings in the console

    GET https://sudonix.com/assets/src/admin/plugins/iframely.js?v=41ullv4da3j net::ERR_ABORTED 404
    

  • Ok. On further investigation, I'm not entirely sure if it's my setup, or if this plugin just doesn't work. I see nothing in the logs, I see requests building on the self-hosted iframely server, but nothing is being rendered in the front end. I see the DIV created for iframely-link but that's about it - nothing else - and nothing recorded in the console

    0a83dc71-43d0-4a12-a4fd-717858cc848b-image.png

    I see traffic being generated and passed to https://media.sudonix.com/iframely as below

    -- [21-12-20 18:17:18]:19209 77.101.200.87 - Loading /iframely for https://content.sudonix.com/hardening-wordpress/
    -- [21-12-20 18:17:28]:19209 77.101.200.87 - Loading /oembed for https://content.sudonix.com/hardening-wordpress/
    -- [21-12-20 18:17:36]:19209 77.101.200.87 - Loading /iframely for https://content.sudonix.com/hardening-wordpress/
    -- [21-12-20 18:17:59]:19209 162.55.215.60 - Loading /iframely for https://matomo.org/free-software
    -- [21-12-20 18:17:59]:19209 162.55.215.60 - Loading /iframely for https://community.nodebb.org/post/84581
    -- [21-12-20 18:17:59]:19209 162.55.215.60 - Loading /iframely for https://rapidapi.com/user/justoverclockl
    -- [21-12-20 18:17:59]:19209 162.55.215.60 - Loading /iframely for https://community.nodebb.org/post/86022
    -- [21-12-20 18:22:25]:19209 162.55.215.60 - Loading /iframely for https://fonts.google.com/specimen/Alfa+Slab+One
    
    

    However, this is all that happens. Nothing else. Interestingly, I have access to another NodeBB forum running the same plugin. This worked fine until I removed the API key, inserted my self-hosted URL, then restarted. This didn't work either - I saw traffic building on my self-hosted server, but nothing being rendered on the other forum either. I put the old API key back, and now it doesn't work at all ?? Even a ./nodebb build does nothing.

    If I check a post here, it seems to work as expected

    e97734fe-ad56-4d09-93fc-e513c4f6bc2e-image.png

    Notice the additional iframely-container DIV that is missing on my forum.


  • Here's a list of my currently installed plugins

            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * nodebb-plugin-customize (not installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, disabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, disabled)
            * [email protected] (installed, disabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, disabled)
            * [email protected] (installed, disabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
            * [email protected] (installed, enabled)
    
    
  • NodeBB Admin

    Did you check the return values here https://github.com/NodeBB-Community/nodebb-plugin-iframely/blob/master/library.js#L332-L351?

    What does iframely return when you use your own endpoint?

  • GNU/Linux Admin

    @phenomlab It may also be helpful to reach out to the IFramely team. This plugin was actually created by them, so while they don't develop too much on it (after all, it works fine until one day it doesn't!), they might want to know that the self-hosted integration may be broken.


  • @baris Aren't these valid for url: iframelyAPI only though ? I'm self-hosting, so these wouldn't fire (unless I read it wrong) ?


  • @julian Given their lack of development and updates, plus they want to charge £30 per month for 10,000 requests on a site that is free to use, this could well land up being abandoned.

  • NodeBB Admin

    Aren't you using the API key or endpoint address: field? What value do you put there? If you don't put an api key there it using it as the iframelyURL.

    var custom_endpoint = /^https?:\/\//i.test(iframely.config.endpoint);
    
    var iframelyAPI = custom_endpoint ? iframely.config.endpoint : iframely['apiBase'] + '&api_key=' + iframely.config.endpoint;
    

  • @baris in that field, I'm using https://media.sudonix.com/iframely which is the self hosted endpoint

  • NodeBB Admin

    @phenomlab said in Iframely help:

    https://media.sudonix.com/iframely

    Yeah so the plugin is making a request to https://media.sudonix.com/iframely?url=<url_of_embed>, did you check what that endpoint returns by logging the response code and body?


  • @baris Yes, the odd thing is that it returns nothing from what I see. I can see it being generated in the logs but when accessing directly from a browser, there's nothing.

    I'm not entirely convinced thay my nginx setup is correct. I'm essentially using a reverse proxy pointing to http://127.0.0.1:8061 which does answer but I'm getting a 404 on some of the URLs according to the console which doesn't make much sense.

    Does anyone have a working nginx config they can share for self hosted iframely?


  • Hey guys, Ivan from Iframely here. Signed up on support request. @julian @baris - please tag me next time, we'll try to keep an eye on your forum.

    Because the plugin works with the cloud version, the issue in this thread is obviously about integrating Iframely self-hosted version and/or connecting it in the plugin's configuration. We'll request additional info take care of it at Iframely support. Thanks for chiming in!


  • @iparamonau Thanks for responding to this. Apologies for emailing support directly but I thought that this was the best course of action seeing as it's a plugin written by iframely.

  • Topic has been marked as solved  phenomlab phenomlab 

  • Coming back with an update. Thanks to the assistance (and persistence) of @iparamonau we now have this working. I am now self-hosting, and VERY happy.

    Essentially, the issue for me was that I use a subdomain of https://media.sudonix.com to facilitate the iframely installation. When @iparamonau checked, they do not permit this and expect a directory of one word. One fix later, and life is good !

  • Global Moderator Plugin & Theme Dev

    @phenomlab said in Iframely help:

    Essentially, the issue for me was that I use a subdomain of https://media.sudonix.com to facilitate the iframely installation. When @iparamonau checked, they do not permit this and expect a directory of one word. One fix later, and life is good !

    I'm having a hard time understanding this. Can you explain in a little more detail what the problem was and how you solved it?


  • @pitaj Sure -sorry - should have included more detail. I couldn't get this to work no matter what I tried, so I was then advised to use the development branch. The iframely self hosting instance would start, log traffic requests, but nothing would happen in terms of embedding working on the front-end.

    After iframely support checked their code, they did not permit directories with "." in them - so, my directory of media.sudonix.com would not work until they issued a patch.

    Now everything works as intended.


Suggested Topics

| | |

© 2014 – 2022 NodeBB, Inc. — Made in Canada.