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.
Sì, quindi… anche io? Sto eseguendo Discourse in un container Docker e il file app.yml contiene molte righe per il recupero di repository Git da costruire tramite il launcher. Quindi ho aggiunto
al file app.yml e ho ricostruito il sistema. Tuttavia, ora non è chiaro come modificare il file config-template.php e salvare tali aggiornamenti in config.php, dato che tutto è automatizzato dal processo di build del launcher.
Perché non rendere queste impostazioni parte di un’interfaccia di configurazione nella sezione amministratore, invece di dover modificare un file PHP? Se ciò non fosse praticabile, come potrebbe una persona come me modificare il file config.php? Dovrei entrare nell’ambiente del container Docker e creare manualmente il file config.php all’interno? Tali modifiche sopravvivono agli aggiornamenti e alle ricostruzioni dei container Docker?