Twikoo

前情提要

点击查看

参考原贴

1
2
3
4
5
6
7
8
9
10
11
comments:
# Up to two comments system, the first will be shown as default
# Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus/Remark42
use:
- Twikoo # Valine,Disqus,...
text: true # Display the comment name next to the button
# lazyload: The comment system will be load when comment element enters the browser's viewport.
# If you set it to true, the comment count will be invalid
lazyload: true
count: false # Display comment count in post's top_img
card_post_count: false # Display comment count in Home Page
1
2
3
4
5
twikoo:
envId: # 这里配置上自己的envId
region: # 地区(私人部署不用)
visitor: true
option: # 选项(可选)

Twikoo搭建

点击查看

Twikoo文档

  • 推荐使用Docker
1
2
3
docker run --name twikoo -e TWIKOO_THROTTLE=1000 -p 8080:8080 -v ${PWD}/data:/app/data -d imaegoo/twikoo
# ${PWD}为当前文件夹,可以改为固定文件夹
# -p 8080:8080 端口(主机->容器tcp) 例如:-p 23103:8080 envId地址为 IP:23103(别忘记开放端口)
  • 强烈建议使用域名反向代理所在端口,并使用SSL
1
2
3
4
# nginx设置
location / {
proxy_pass http:127.0.0.1:23103; # 端口改为自己端口
}

本站搭建使用腾讯云轻量服务器搭建,若没有可以参考以下视频