自行部署Isso评论系统(服务器端)
Le Thu 13 February 2025
Isso是评论系统,可以自行部署服务器端,也可以使用第三方提供的服务。
此处自行搭建。
isso是Python程序,发布于PyPI,使用pip安装即可。
建立相关目录。
mkdir /opt/isso
mkdir /opt/isso/myenv
mkdir /opt/isso/conf
mkdir /opt/isso/db
安装Python虚拟环境,并安装isso。
python3 -m venv /opt/isso/myenv
/opt/isso/myenv/bin/pip install isso
单服务器配置文件:
[general]
dbpath = /opt/isso/db/comments.db
host = 127.0.0.1
port = 8080
logfile = /opt/isso/log/isso.log
loglevel = info
多服务器配置文件:
touch /opt/isso/conf/site1.conf
touch /opt/isso/conf/site2.conf
touch /opt/isso/conf/site3.conf
[general]
dbpath = /opt/isso/db/comments.db
host = 127.0.0.1
port = 8080
logfile = /opt/isso/log/isso.log
loglevel = info
使用合适的应用服务器,启动isso。
单服务器:
多服务器:
$ export ISSO_SETTINGS="/etc/isso.d/foo.example.cfg;/etc/isso.d/other.bar.cfg"
$ gunicorn isso.dispatch -b localhost:8080
这里需要注意ISSO_SETTINGS变量。
这个变量中,多个配置文件之间使用;分隔。
如果只有一个配置文件,则不使用;。如果将;加入变量中,程序会不当处理,给出难以理解的出错信息。导致浪费时间。
将web服务器反向代理到isso应用服务器。
参考了以下资料,特此致谢:
(访问于2025年2月)
- https://oktomus.com/posts/2020/add-comments-to-a-static-blog-with-isso/
- https://stanislas.blog/2018/02/add-comments-to-your-blog-with-isso/
- https://hiob.fr/isso-docker/
- https://www.brunoparmentier.be/blog/getting-isso-to-work-on-centos-6-and-nginx/
- https://stanislas.blog/2020/02/migrate-dated-permalinks-ghost-isso/
- https://blog.saintic.com/blog/275.html
- https://stanislas.blog/2020/02/migrating-comments-from-isso-to-disqus/
- https://isso-comments.de/docs/guides/tips-and-tricks/
- https://isso-cn.rtfd.vip/zh_CN/latest/docs/setup/multiple-sites/