Ik ben nieuw in Ruby en Docker, maar heb verder wel wat ontwikkelervaring. Ik heb een draaiende dev Discourse-instantie en een productie-instantie, dus de afhankelijkheden lijken te zijn vervuld. Ik wil graag Oauth 2.0-functionaliteit toevoegen aan no-reply@discourse.example.com, zodat ik de meldingen via een Google Workspace-gebruiker kan verzenden.
Ik vraag vriendelijk uw hulp bij het volgende:
hoe maak ik de docker-image van de discourse git-repository?
welk deel van de code bevat de STMP-authenticatie van de no-reply en het verzenden van de meldingen?
Als het goed gaat, wil ik het selecteerbaar maken in het script ./discourse-setup, zodat de webmaster kan worden ingesteld voor de meeste e-mailproviders en OAuth 2.0 wanneer de e-mailprovider Google is. Als u het nuttig vindt, kan ik het resultaat ter beoordeling sturen.
Bedankt voor uw snelle reactie. Ik zou het ./discourse-setup-script gebruiken, maar ik moet Discourse instellen als een OAuth-client, niet als een SMTP-client, dus ik moet het eerst aan de bron toevoegen. Ik kan de Discourse-bron niet vinden in de discourse_docker-repository. Hoe kan ik de Discourse-bron wijzigen en vervolgens het ./discourse-setup-script uitvoeren? Als u niet aanraadt om ./launcher te gebruiken, vind ik het prima om die richting niet te volgen.
Momenteel heb ik de Discourse- en discourse_docker-repositories.
Do you mean SMTP with oAuth authentication instead of Basic authentication? Or are you looking to send mail via some other pathway?
Discourse does not support SMTP oAuth authentication, so the simplest approach is probably having Discourse hand off email to a local mail server configured in such a way that submits the mail with necessary authentication.
Google’s supported mechanism for this seems to be:
I mean that in my case Discourse should connect to the mail provider via OAuth 2, and not SMTP. Unfortunately, I found that my mails likely go to spam when not using a big mail provider, so I decided to add OAuth 2 authentication for the no-reply account used by Discourse and connect to Google Workspace. I also tried mailgun, however I would have needed IMAP support too (that for other user accounts not for the no-reply).
I have the time, I can play with it, I just need some help at the start (And perhaps some more later)
Typically, you’d configure some transactional mail service to send from noreply@forum.example.com and the mail receiver would receive mail sent to it and hand it off to discourse.