I’m trying to set up a web hook and I need to point the payload to a local file.
The file inside the Docker container is located at:
/var/www/discourse/plugins/distodis/docroot/
To what address does this translate to as URL?
discourse.mydomain.com/ ???
I’ve pretty much tried everything I can think of and I’m getting 404 from all my pings.
Any ideas?
Falco
(Falco)
Janvier 25, 2019, 4:00
2
A file that lives in
/var/www/discourse/plugins/plugin-name/public/folder/a.txt
will be in the URL at
https://discourse.example.com/plugins/plugin-name/folder/a.txt
I can access it if I link it here ln -s /var/www/discourse/plugins/distodis/
But then you can download all the PHP files with secrets. They don’t get executed and the webhook is returning 405 when I ping it.
Falco
(Falco)
Janvier 25, 2019, 4:37
4
What does PHP have to do with Discourse?
Nothing directly, but this plugin is using PHP:
https://github.com/ellotheth/distodis
But now that I think about it … it might require an external web server, because Discourse doesn’t come with PHP support in nginx, right?
That’s definitely not a Discourse plugin.
Falco
(Falco)
Janvier 25, 2019, 4:44
7
Posting from Discourse to Discord in natively supported in this plugin:
This guide explains how to configure Discord notifications for your Discourse forum using the discourse-chat-integration plugin. This plugin is included with Discourse — no separate installation is required.
Required user level: Administrator
Set up Discord webhook
Log into your Discord server
Click your server name and choose “Server Settings”
[Server settings]
Click Integrations, then Webhooks. Then click Create Webhook
Choose a bot name, icon…
Cela se trouve dans la catégorie Customization > Extras …
Un répertoire de toutes les extensions et intégrations pour Discourse qui ne sont pas des plugins Discourse, c’est-à-dire un plugin CMS, une extension de navigateur ou une application native.
Hey, thanks a lot. I didn’t see that when I was searching for Discourse/Discord integration plugins. I’m gonna try that out!
Ah, d’accord. J’aurais dû lire ça plus attentivement. J’ai simplement supposé que c’était pour les plugins non officiels.