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 для сборки с помощью лаунчера.. поэтому я добавляю
в файл app.yml и пересобираю.. но теперь мне непонятно, как редактировать файл config-template.php и сохранять эти изменения в config.php, когда всё это автоматизировано процессом сборки лаунчера.
Почему бы не сделать эти настройки частью интерфейса настроек в разделе администратора, а не редактированием php-файла? Если это непрактично, как человеку вроде меня изменить файл config.php? Нужно ли мне заходить в среду Docker-контейнера и вручную создавать там файл config.php? Сохранится ли это после обновлений и пересборки Docker?