I’m currently using this: GitHub - davidmh/discourse-giphy: Giphy integration for discourse
The plugin has been updated to support SVG icons with Font Awesome 5
I’ve added this plugin following the guidelines on the github page, but it doesn’t work! I’ve also added it under hooks, but the problem persists. How can I properly install it, or uninstall if it doesn’t work eventually? Thanks in advance!
To uninstall, you simply remove it from your app.yml.
Are you running on HTTPS? Did you add the template to support a reverse proxy?
Fixed! Thank you very much!
Thanks for this great plugin.
I just have a little issue, the icon to insert a Gif doesn’t appear in the window, do you have any idea where it could come from ?
Core’s icons changed to be based on fontawesome 5 sets, which is probably why the icon’s missing. The plugin would need to be updated here to support it.
I don’t think that is it… it already supports FA 5.
On latest, on my sandbox, the icon works fine…
I need to know the Discourse version and if there are any console related errors on your site.
So… is this still working for anyone?
I didn’t take a look at this plugin for a few years but today I did… and the world is https now - after using the reverse proxy solution the JSON that is returned still has URL’s with http:// in them, so they are not showing because of mixed content?
Update: we’ve fixed the above issue by doing the following in our nginx config.
(Disclaimer: I don’t know if the docker image includes the ngx_http_sub_module)
location /replygif/ {
proxy_pass http://replygif.net/;
proxy_set_header Accept-Encoding "";
sub_filter http://replygif.net/ /replygif/;
sub_filter_once off;
sub_filter_types application/json;
}
The API URL in your settings should be https://yourforumname/replygif/api/ if you use this.
@PaulinaMX this is working on your forum now
@RGJ Thank you very much
the categories are working perfectly, only it seems that the tags are not working.
That seems to be an issue in the plugin itself. @cpradio do you have any idea?
@cpradio We need you 
Würde dies das Problem blocked:mixed-content beheben, da aktuelle Browser HTTP-Inhalte von HTTPS-Websites blockieren?
Sie müssen den Proxy-Anweisungen folgen.
Im README gibt es einen Abschnitt zu HTTPS.
TL;DR: Proxy-Konfiguration ist vorhanden, löst das Problem jedoch nicht, da nicht-proxyfizierte Links weiterhin abgerufen werden.
Details:
Ich habe den Server überprüft, und er ist gemäß Ihren Anweisungen konfiguriert. Ich bin in den Container selbst gegangen, um die discourse.conf zu prüfen, und festgestellt, dass der Proxy-Pass ordnungsgemäß eingerichtet ist.
Mit den Entwicklertools von Chromium (Netzwerk) sehe ich Abfragen, die durch den Proxy laufen, z. B. https://mycompany.com/replygif/gifs?api-key=39YAprx5Yi&reply=Angry. Diese gibt ein JSON zurück, mit URLs wie http://replygif.net/i/1032.gif.
Anschließend fordert die Netzwerkverbindung von meinem Client-Browser Thumbnails an, z. B. http://replygif.net/thumbnail/176.gif. Dies wird offensichtlich fehlschlagen, da CSP gemischte Inhalte (HTTP + HTTPS) blockiert.
Ich weiß nicht, wie die Ember.js-Anwendung funktioniert, aber aus dem Netzwerkverkehr lässt sich ableiten, dass Abfragen gestellt werden, um ein JSON mit Bild-URLs zu erhalten, die später für die Thumbnails abgerufen werden. Diese Bild-Links selbst funktionieren jedoch nicht, und ein Proxy-Pass wird dies nicht beheben.
Um dies zu lösen, scheint die Ember-App selbst so konfiguriert werden zu müssen, dass diese URL-Referenzen so umgeschrieben werden, dass sie mit der entsprechenden referenzierten URL über den Proxy übereinstimmen, z. B. https://mycompany.com/replygif/thumbnail/176.gif.
Gedanken? Vorschläge?
Es scheint, als gäbe es dafür nicht viel, was ich tun kann. Denn es sieht so aus, als würde replygif HTTPS immer noch nicht unterstützen.
Ich bin ein Anfänger in diesem Bereich. Gibt es eine Schritt-für-Schritt-Anleitung, um einen Reverse-Proxy für dieses Plugin einzurichten?
Die Seite ist sicher und bei DigitalOcean gehostet, falls das hilft.
Ja, die README-Datei führt Sie durch die einzelnen Schritte. Sie enthält sogar den wget-Befehl, um die Vorlage am richtigen Ort abzulegen. Anschließend müssen Sie nur noch Ihre app.yml aktualisieren, um die Vorlage zu verwenden.


