From 07ff57f9b64fa7464661beebeb960ab248e417d4 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Mon, 1 Jun 2015 12:15:20 +0200 Subject: [PATCH] New post: Isso for comments --- _posts/2015-06-01-isso-for-comments.markdown | 71 ++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 _posts/2015-06-01-isso-for-comments.markdown diff --git a/_posts/2015-06-01-isso-for-comments.markdown b/_posts/2015-06-01-isso-for-comments.markdown new file mode 100644 index 0000000..5fa5716 --- /dev/null +++ b/_posts/2015-06-01-isso-for-comments.markdown @@ -0,0 +1,71 @@ +--- +categories: +- General +- Linux +comments: true +date: 2015-06-01 12:04:58+0200 +layout: page +tags: +- comments +- isso +- jekyll +- blog +title: Isso for comments +--- + +As I said in my latest post, I wasn't very happy with using Disqus to store my comments, mainly because I do *not* want my data to be hosted by someone else. Thanks to some commenters, I was made aware of an alternative, called [isso](http://posativ.org/isso). + +After reading the online documentation, I decided to set it up with dennogumi.org. It was all a matter of creating a new user called ``isso``, setting a virtualenv to its home dir, and then installing isso itself and [uWSGI](https://uwsgi-docs.readthedocs.org/en/latest/): + +```` +virtualenv ./ +./bin/activate +```` + +And then just start installing: + +```` +pip install isso +pip install uwsgi # for deployment +```` + +I then set up a system-wide configuration in ``/etc/isso/`` which included the uwsgi configuration and isso's own file. The last bit needed was to create a systemd unit file to run uWSGI properly (as inspired by the uWSGI docs): + +````ini +[Unit] +Description=uWSGI +After=syslog.target + +[Service] +ExecStart=/home/isso/bin/uwsgi --ini /etc/isso/uwsgi.ini +Restart=always +KillSignal=SIGQUIT +Type=notify +StandardError=syslog +NotifyAccess=all +User=isso +Group=isso + +[Install] +WantedBy=multi-user.target + +```` + +And here's my uwsgi.ini, for reference: + +````ini +[uwsgi] +http = :8050 +master = true +; set to `nproc` +processes = 8 +cache2 = name=hash,items=1024,blocksize=32 +; you may change this +spooler = /home/isso/spool/ +module = isso.run +; uncomment if you use a virtual environment +virtualenv = /home/isso/ +env = ISSO_SETTINGS=/etc/isso/isso.conf +```` + +Lastly, I needed to create a new domain for dennogumi.org and set nginx to proxy over to port 8050. Everything else was done as the isso documentation suggested. And that's where you see it now. I have imported the comments from Disqus, so everything should be hopefully in place. Let me know if there are issues. \ No newline at end of file