New post: Isso for comments
This commit is contained in:
		
					parent
					
						
							
								da3f763f44
							
						
					
				
			
			
				commit
				
					
						07ff57f9b6
					
				
			
		
					 1 changed files with 71 additions and 0 deletions
				
			
		
							
								
								
									
										71
									
								
								_posts/2015-06-01-isso-for-comments.markdown
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										71
									
								
								_posts/2015-06-01-isso-for-comments.markdown
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -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.
 | 
				
			||||||
		Reference in a new issue