Istruzioni per l'installazione del server esistente

Ho trovato alcuni post, come questo, in cui gli utenti desideravano installare Discourse su un server esistente. Ho provato a mettere insieme i vari elementi, ma è stato un vero mal di testa dover saltare tra cinque fonti diverse, tra questa istanza e GitHub. È stata un’esperienza intensa e raccomanderei vivamente di aggiungere più funzionalità agli script per supportare questo caso d’uso.

L’ultimo punto che non sono ancora riuscito a chiarire è la struttura finale di app.yml. Ho trovato solo frammenti, non abbastanza per concludere che quanto ho raccolto sia completo. Suggerirei che lo script launcher sia in grado di generare una copia senza passaggi aggiuntivi. Questa sola aggiunta permetterebbe alle persone di preconfigurare tutto ciò di cui hanno bisogno. Per ora, se potessi ricevere un link a un modello di file raw o se ne venisse allegato uno in una risposta, ne sarei estremamente grato.

There are many, many good reasons we only officially support the docker based install method.

This will not be changing.

It’s right here: discourse_docker/samples/standalone.yml at master · discourse/discourse_docker · GitHub

Using the sample file I provided above, comment out the lines about exposed ports (since this server is shared they will already be busy). After that add this line to the template list on the top:

- "templates/web.socketed.template.yml"

Now, after a rebuild Discourse will be listening only on a Unix socket under the shared folder. Point your reverse proxy to that.