Iframely help
-
-
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 consoleI 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
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)
-
@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.
-
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;
-
@phenomlab said in Iframely help:
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.
-
-
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 !
-
@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.
-
@phenomlab Thanks for circling back, and kudos to @iparamonau for stopping by to fix the plugin
Glad everything is working!
-
@julian I think I'll write up what's needed to get this to work - will probably publish on my own site (sudonix.com)
-
yes great idea @phenomlab