75 lines
		
	
	
		
			No EOL
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			75 lines
		
	
	
		
			No EOL
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| 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/):
 | |
| 
 | |
| 
 | |
| {% highlight bash %}
 | |
| virtualenv ./
 | |
| ./bin/activate
 | |
| {% endhighlight %}
 | |
| 
 | |
| And then just start installing:
 | |
| 
 | |
| {% highlight bash %}
 | |
| pip install isso
 | |
| pip install uwsgi # for deployment
 | |
| {% endhighlight %}
 | |
| 
 | |
| 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):
 | |
| 
 | |
| {% highlight 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
 | |
| 
 | |
| {% endhighlight %}
 | |
| 
 | |
| And here's my uwsgi.ini, for reference:
 | |
| 
 | |
| {% highlight 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
 | |
| 
 | |
| {% endhighlight %}
 | |
| 
 | |
| 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. |