Case: Use an external commenting system for a public site

Let's say we want to:

  • Make one or more Confluence spaces publicly viewable on a custom host name, and

  • Allow guest visitors to comment the content using an external commenting system like Disqus or Livefyre.

This is easy to do with Domain Booster - there's a live sample on https://domain-booster-demo-site-1.bugsio.com/

Host name: domain-booster-demo-site-1.bugsio.com (Note that you can use any domain under your control)

Spaces: P (where P is Confluence space key with public access rights)

Options enabled:

  • Limit Confluence search to listed Spaces

  • Update canonical link in documents to point to this host

  • Hide Confluence Comments

  • Hide Confluence Likes

Home Page Path: /wiki/display/P/

Forbidden Paths for Anonymous Users:

/
/wiki
/wiki/
/wiki/discover/all-updates

Page Content Outer End

<div id="disqus_thread"></div>
<script>
var pageUrl = AJS.$('link[rel=canonical]').attr('href');
var pageId = AJS.Meta.get("page-id");
if(pageUrl && pageId) {
var disqus_config = function () {
this.page.url = pageUrl;
this.page.identifier = pageId;
};
(function() {
var d = document, s = d.createElement('script');
s.src = '//domain-booster-demo.disqus.com/embed.js'; // IMPORTANT: Update with hostname defined in Disqus
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
}
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>

HTML Body End - we're using it to load Disqus JavaScript

<script id="dsq-count-scr" src="//domain-booster-demo.disqus.com/count.js" async></script>

comments powered by Disqus