From 6747ac5300235ae6f4d5eeee2b6eb0a84e6a22ad Mon Sep 17 00:00:00 2001 From: "M. Taylor Saotome-Westlake" Date: Sun, 5 Apr 2020 18:23:26 -0700 Subject: [PATCH] Isso comment server setup! I sure hope I don't regret this! --- provisioning/isso.cfg | 22 ++++++++++++++++++++++ provisioning/nginx_siteconf | 8 ++++++++ theme/templates/article.html | 20 ++++++-------------- 3 files changed, 36 insertions(+), 14 deletions(-) create mode 100644 provisioning/isso.cfg diff --git a/provisioning/isso.cfg b/provisioning/isso.cfg new file mode 100644 index 0000000..a2e9c21 --- /dev/null +++ b/provisioning/isso.cfg @@ -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] diff --git a/provisioning/nginx_siteconf b/provisioning/nginx_siteconf index 8db2fce..b18ce5b 100644 --- a/provisioning/nginx_siteconf +++ b/provisioning/nginx_siteconf @@ -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; + } + } diff --git a/theme/templates/article.html b/theme/templates/article.html index d40a722..0e6687f 100644 --- a/theme/templates/article.html +++ b/theme/templates/article.html @@ -42,19 +42,11 @@ (Post revision history)

- {% if DISQUS_SITENAME %} -
-

Comments !

-
- -
- {% endif %} + +
{% endblock %} -- 2.17.1