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.
Sim, então… eu também? Estou executando um Discourse em Docker e o arquivo app.yml possui várias linhas para puxar repositórios Git e construir por meio do launcher… então eu adiciono
ao arquivo app.yml e reconstruo… mas agora não está claro para mim como editar o arquivo config-template.php e salvar essas atualizações no config.php, já que tudo é automatizado pelo processo de build do launcher.
Por que não tornar essas configurações parte de uma interface de configurações na seção de administração, em vez de editar um arquivo PHP? Se isso for impraticável, como alguém como eu modificaria o arquivo config.php? Preciso entrar no ambiente do contêiner Docker e criar manualmente o arquivo config.php lá dentro? Isso sobrevive a atualizações e reconstruções do Docker?