Report this

What is the reason for this report?

How to integrate ISSO comments on Ghost Blog?

Posted on January 20, 2019

I’m running a Ghost blog on Ubuntu 18.04 droplet (using one-click installation).

Ghost blog is running at: dev.mydomain.com (dev.mydomain.com routes to this droplet’s IP)

I’d like to integrate ISSO comments to this using their Docker installation.

To do this, I am running an ISSO Docker container and updating the Nginx proxy settings to route requests to it

ISSO Docker setup and test

Installed Docker based on instructions here.

Ran the following command:

docker run -d --name=isso -p 127.0.0.1:8080:8080 -v /var/lib/isso/config:/config -v /var/lib/isso/db:/db wonderfall/isso:latest

Updated the /var/lib/isso/config/isso.conf to:

[general]
dbpath = /db/comments.db
host = http://dev.mydomain.com/
max-age=15d
[moderation]
enabled = false
[guard]
enabled = false
[server]
listen = http://0.0.0.0:8080/
reload = off
profile = off

Test if ISSO is up and running or not using:

docker exec isso isso -c /var/lib/isso/config/isso.conf run

This returns an error:

ERROR: No website(s) configured, Isso won't work.

Nginx configs for dev.mydomain.com and dev-comments.mydomain.com

Nginx configs:

/etc/nginx/sites-available/ 

dev.mydomain.com.conf

server {
    listen 80;
    listen [::]:80;

    server_name dev.mydomain.com;
    root /var/www/ghost/system/nginx-root;

    location / {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Host $http_host;
        proxy_pass http://127.0.0.1:2368;

    }

    location ~ /.well-known {
        allow all;
    }

    client_max_body_size 50m;

}

dev-comments.mydomain.com.conf

server {
    listen 80;
    listen [::]:80;

    server_name dev-comments.mydomain.com;

    location / {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Host $http_host;
        proxy_pass http://127.0.0.1:8080;

    }

    location ~ /.well-known {
        allow all;
    }

    client_max_body_size 50m;

}

Problems/ questions:

  1. Running ISSO within the Docker container throws an error
  2. Nginx proxy setup

I need help understanding this and setting it up. What is wrong with the above and how do I address it?

Thanks in advance!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey friend,

Seems fairly straight forward, but I’ve never used this comment system before. I assume the reverse proxy works fine if you solve the first issue with running the app. What error do you get when starting up the docker container?

Jarland

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.