# How to solve the Discourse comment not showing with Ghost for applying the official tutorial

**URL:** <https://forum.ghost.org/t/how-to-solve-the-discourse-comment-not-showing-with-ghost-for-applying-the-official-tutorial/28631>\
**Category:** Self-hosting\
**Created:** [February 20, 2022, 8:31am UTC](https://forum.ghost.org/t/how-to-solve-the-discourse-comment-not-showing-with-ghost-for-applying-the-official-tutorial/28631 "2022-02-20T08:31:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honggian](https://avatars.discourse-cdn.com/v4/letter/h/b5e925/32.png) [@honggian](https://forum.ghost.org/u/honggian)\
**Post date:** [February 20, 2022, 8:31am UTC](https://forum.ghost.org/t/how-to-solve-the-discourse-comment-not-showing-with-ghost-for-applying-the-official-tutorial/28631/1 "2022-02-20T08:31:01Z")

</div>

I would like to configure Ghost and Discourse comment.

I already follow [the official instruction](https://ghost.org/integrations/discourse/), however nothing happened. I installed Ghost and Discourse in my Ubuntu 20.04 LTS server. Ghost and Discourse working very well.

I am using WordOps, nginx and related program for operating website. Maybe some security setting is block Discourse comment, however I am not sure.

When I would like to check Chrome and Safari developer’s tool, they didn’t show any errors. Nginx has no errors for Ghost and Discourse too.

So I wonder that someone have some recommendation for solving this problem.

**Here is my Discourse setting.**

xxx is my domain, it is an example.

Discourse installed path [https://forum.xxx.com](https://forum.xxx.com)  
Allowed Hosts - [diary.xxx.com](http://diary.xxx.com)  
Class Name - discourse-comments  
Path Allowlist - I don’t understand clearly what does it mean with ghost.  
Post to Category - Diary-Comments

```auto
<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>

```

**Here is my Ghost setting.**

Ghost installed path [https://diary.xxx.com](https://diary.xxx.com)

path [**/var/www/diary.xxx.com/htdocs/current/content/themes/casper/post.hbs**](http://diary.xxx.com/htdocs/current/content/themes/casper/post.hbs)

```auto
{{!--

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

I inserted here the discourse comment script.

</section>

--}}

```

Sincerely,

Honggi An
