The discussion revolves around setting up a webhook to connect Discourse to Discord using a PHP script called Discourse to Discord Webhook. DanielMarquard introduces the script, provides installation instructions, and clarifies that users should rename config-template.php to config.php for configuration DanielMarquard. Kyle_boyce and amalg seek clarification on locating and modifying the config.php file, especially in a Dockerized Discourse environment. Thwright reports a 400 error due to an empty message when sending posts, with their configuration detailed in the post. The thread highlights the need for clearer documentation on configuration and deployment, particularly for users running Discourse via Docker.
This PHP script acts an intermediary between Discourse and Discord, receiving webhooks from Discourse and parsing them into an optimal format before relaying them to Discord.
نعم، إذن… أنا أيضًا؟ أنا أشغل Discourse داخل حاوية Docker، وملف app.yml يحتوي على العديد من الأسطر لسحب مستودعات Git لبنائها عبر أداة التشغيل (launcher)… لذا أضفت
إلى ملف app.yml وأعيد البناء.. لكن أصبح غير واضح بالنسبة لي كيفية تعديل ملف config-template.php وحفظ هذه التحديثات في config.php عندما تكون العملية كلها مؤتمتة بواسطة عملية بناء أداة التشغيل.
لماذا لا تُجعل هذه الإعدادات جزءًا من واجهة إعدادات ضمن قسم المسؤول بدلاً من تعديل ملف PHP؟ إذا كان ذلك غير عملي، فكيف يمكن لشخص مثلي تعديل ملف config.php؟ هل يجب علي الدخول إلى بيئة حاوية Docker وإنشاء ملف config.php يدويًا هناك؟ وهل يظل هذا الملف قائمًا بعد التحديثات وإعادة بناء الحاويات؟