umputun / remark42

comment engine
https://remark42.com
MIT License
4.81k stars 374 forks source link

Setting for external server - I need help! #1729

Closed 4044ever closed 7 months ago

4044ever commented 7 months ago

I gave up on ISSO, trying the much better documented Remark42...

I have Debian VPS, running a few sites - where I don't plan to use comments.

I want to use it on other, external sites. This is basically the essential part of my YML:

VPS IP is 123.123.123.123 None of the use sites is on that VPS

comments.domain0001.com is active via cloudflare

    environment:
      - REMARK_URL=https://comments.domain0001.com
      - ALLOWED_HOSTS='self',domain0001.com,domain0002.com,domain0003.com
      - AUTH_SAME_SITE=none
      - SITE=domain0001.com
      - SECRET=hard-to-guess
      - STORE_BOLT_PATH=/srv/var/db
      - BACKUP_PATH=/srv/var/backup
      - DEBUG=true
      - AUTH_ANON=true
    volumes:
      - ./var:/srv/var

On the backend I use:

<div id="remark42"></div>
<script>
  var remark_config = {
    host: "https://comments.domain0001.com",
    site_id: 'comments.domain0001.com',
    components: ['embed']
  };
</script>
<script>!function(e,n){for(var o=0;o<e.length;o++){var r=n.createElement("script"),c=".js",d=n.head||n.body;"noModule"in r?(r.type="module",c=".mjs"):r.async=!0,r.defer=!0,r.src=remark_config.host+"/web/"+e[o]+c,d.appendChild(r)}}(remark_config.components||["embed"],document);</script>

Well, the container is created and running, but seems there are probably some grave errors and I hope to get some hints here.

umputun commented 7 months ago

pls, use discussions for such type of questions, moved