Isso comment server setup!
authorM. Taylor Saotome-Westlake <ultimatelyuntruethought@gmail.com>
Mon, 6 Apr 2020 01:23:26 +0000 (18:23 -0700)
committerM. Taylor Saotome-Westlake <ultimatelyuntruethought@gmail.com>
Mon, 6 Apr 2020 01:23:26 +0000 (18:23 -0700)
I sure hope I don't regret this!

provisioning/isso.cfg [new file with mode: 0644]
provisioning/nginx_siteconf
theme/templates/article.html

diff --git a/provisioning/isso.cfg b/provisioning/isso.cfg
new file mode 100644 (file)
index 0000000..a2e9c21
--- /dev/null
@@ -0,0 +1,22 @@
+[general]
+; database location, check permissions, automatically created if not exists
+dbpath = /home/mtsw/isso/comments.db
+; your website or blog (not the location of Isso!)
+; you can add multiple hosts for local development
+; or SSL connections. There is no wildcard to allow
+; any domain.
+host =
+    http://unremediatedgender.space/
+    http://localhost:8000/
+    
+[guard]
+reply-to-self = true
+require-author = true
+require-email = true
+
+[rss]
+base = rss
+
+[admin]
+enabled = true
+#password = [REDACTED; set this manually when redeploying]
index 8db2fce..b18ce5b 100644 (file)
@@ -40,4 +40,12 @@ server {
             try_files $uri $uri/ =404;
         }
 
+        location /isso {
+            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+            proxy_set_header X-Script-Name /isso;
+            proxy_set_header Host $host;
+            proxy_set_header X-Forwarded-Proto $scheme;
+            proxy_pass http://localhost:8080;
+        }
+
 }
index d40a722..0e6687f 100644 (file)
           <a style="font-size: 80%;" href="http://unremediatedgender.space/source?p=Ultimately_Untrue_Thought.git;a=history;f=content/{{ article.date.year }}/{{ article.slug }}.md;hb=HEAD">(Post revision history)</a>
         </p>
 
-       {% if DISQUS_SITENAME %}
-       <div class="comments">
-       <h2>Comments !</h2>
-           <div id="disqus_thread"></div>
-           <script type="text/javascript">
-              var disqus_identifier = "{{ article.url }}";
-              (function() {
-              var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
-              dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
-              (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
-             })();
-           </script>
-       </div>
-       {% endif %}
+        <script data-isso="//unremediatedgender.space/isso"
+                data-isso-reply-to-self="true"
+                data-isso-require-author="true"
+                data-isso-require-email="true"
+                src="//unremediatedgender.space/isso/js/embed.min.js"></script>
+        <section id="isso-thread"></section>
 
 {% endblock %}