如何解决应用官方教程时,Ghost上Discourse评论不显示的问题

我想配置 Ghost 和 Discourse 评论。

我已经遵循了官方说明,但没有任何效果。我在 Ubuntu 20.04 LTS 服务器上安装了 Ghost 和 Discourse。Ghost 和 Discourse 工作得非常好。

我使用 WordOps、nginx 和相关程序来运营网站。也许某些安全设置阻止了 Discourse 评论,但我不太确定。

当我尝试检查 Chrome 和 Safari 的开发者工具时,它们没有显示任何错误。Nginx 在 Ghost 和 Discourse 方面也没有错误。

因此,我想知道是否有人对解决此问题有任何建议。

这是我的 Discourse 设置。

xxx 是我的域名,仅为示例。

Discourse 安装路径 https://forum.xxx.com
允许的主机 - diary.xxx.com
类名 - discourse-comments
路径允许列表 - 我不清楚这在 Ghost 中的含义。
发布到类别 - Diary-Comments

<div id='discourse-comments'></div>

<script type="text/javascript">
  DiscourseEmbed = { discourseUrl: 'https://forum.xxx.com/',
                     discourseEmbedUrl: '{{url absolute="true"}}' };

  (function() {
    var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
    d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
  })();
</script>

这是我的 Ghost 设置。

Ghost 安装路径 https://diary.xxx.com

路径 /var/www/diary.xxx.com/htdocs/current/content/themes/casper/post.hbs

{{!--

<section class="article-comments gh-canvas">

我在这里插入了 discourse 评论脚本。

</section>

--}}

诚挚地,
Honggi An