有人帮忙看一下 remark42 配置吗

version: "2"
services:
  remark:
    # remove the next line in case you want to use this Docker Compose file separately
    # as otherwise it would complain for absence of Dockerfile
    image: 127.0.0.1:15000/docker.io/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"

    # uncomment to expose to reverse proxy running on the same host but not in docker
    ports:
      - 0.0.0.0:8080:8080
    environment:
      - REMARK_URL=https://remark42.liaowen.us.kg
      - SECRET=6wzTPFWEknb8NU6es9yqPr2iYagUX
      - DEBUG=true
      - AUTH_GOOGLE_CID
      - AUTH_GOOGLE_CSEC
      - AUTH_GITHUB_CID=1111
      - AUTH_GITHUB_CSEC=1111
      - AUTH_FACEBOOK_CID
      - AUTH_FACEBOOK_CSEC
      - AUTH_DISQUS_CID
      - AUTH_DISQUS_CSEC
      - REMARK_SITE=blog.liaowen.us.kg
      - AUTH_SAME_SITE=none # 允许跨站点 cookie
      - ALLOWED_HOSTS=*
      # 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>
    volumes:
      - ./var:/srv/var
networks: {}

这是 docker 配置

  commentSystems:
  #  disqus:
  #    shortname: reorx
    remark42:
      url: https://remark42.liaowen.us.kg
      site: blog.liaowen.us.kg
  #  telegramWidget:
  #    channel: reorx_share
  #    accentColor: "9077e1"
  #    limit: 20
  defaultCommentSystems:
    remark42: true

这是站点评论配置,remark42的demo都可以评论

1 个赞

应该使用 site 环境变量,可以用多个分隔