umputun / remark42

comment engine
https://remark42.com
MIT License
4.9k stars 381 forks source link

Remark42 not work on different instance and website host on github.io #1610

Closed jkcharlie6679 closed 1 year ago

jkcharlie6679 commented 1 year ago

I use the Hugo-stack-theme to build my website through gitgub.io. I used remark42 to be my comment system. When I tested on the local machine, it worked. When I push it to GitHub and it doesn't show on my website. (https://tycharlie.com)

The following is my remark42 docker-compose.yaml.

version: "2"

services:
  remark:
    # remove the next line in case you want to use this docker-compose separately
    # as otherwise it would complain for absence of Dockerfile
    # build: .
    image: umputun/remark42:latest
    container_name: "remark42"
    hostname: "remark42"
    restart: always

    logging:
      driver: json-file
      options:
        max-size: "10m"
        max-file: "5"

    # uncomment to expose directly (no proxy)
    ports:
     - "80:8080"
     - "443:8443"

    environment:
      - REMARK_URL=http://comment.tycharlie.com
      - SITE=tycharlie.com
      - SECRET=thisistycharliecomcomment!!
      - DEBUG=true
      - ALLOWED_HOSTS='self',tycharlie.com
      - AUTH_SAME_SITE=none
      - AUTH_ANON=true
      # - AUTH_GOOGLE_CID
      # - AUTH_GOOGLE_CSEC
      - AUTH_GITHUB_CID=c4c294fd9b5dd8458662
      - AUTH_GITHUB_CSEC=4ff5d6d3f76547c8fe35beb1145470aa8c6de513
      # - AUTH_FACEBOOK_CID
      # - AUTH_FACEBOOK_CSEC
      # - AUTH_DISQUS_CID
      # - AUTH_DISQUS_CSEC
      # Enable it only for the initial comment import or for manual backups.
      # Do not leave the server running with the ADMIN_PASSWD set if you don't have an intention
      # to keep creating backups manually!
      # - ADMIN_PASSWD=<your secret password>
      # - ADMIN_SHARED_ID=Charlie_C
    volumes:
      - ./var:/srv/var

Is there anyone who can help me to resolve this problem? The following image is about the website that will call the API to the comment system. But it has some errors. Thanks.

image