كيفية الوصول إلى مسارات الإضافات عبر عنوان URL؟

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?

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.

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? :thinking:

That’s definitely not a Discourse plugin.

Posting from Discourse to Discord in natively supported in this plugin:

What? How so?

I found it here:

إنه موجود في فئة Customization > Extras

دليل لجميع الإضافات والتكاملات الخاصة بـ Discourse التي ليست إضافات Discourse، أي إضافة نظام إدارة محتوى (CMS)، أو إضافة متصفح، أو تطبيق أصلي.

Hey, thanks a lot. I didn’t see that when I was searching for Discourse/Discord integration plugins. I’m gonna try that out!

أوه، حسنًا. كان ينبغي أن أقرأ ذلك بعناية أكبر. لقد افترضت ببساطة أنه مخصص للإضافات غير الرسمية. :cold_sweat: