Installing Discourse SSO with Ghost as source of truth

Hi, I am trying to create a community for my paid subscribers and wondering if it is possible to hire someone to install “Discourse on Ghost”?

I have a Ghost(pro) account and a (trial) communiteq.com hosted Discourse instance.

Currently trying to install on a DigitalOcean droplet and the install is returning invalid for my Ghost Admin API and Discourse Admin API keys

Thank you!

I posted this before seeing your updated description - feel free to post your setup here instead of on GitHub :slight_smile:

1 Like

Thank you! To the best of my ability:

Ghost(pro)
Discourse (trial) hosted by Communiteq
Digital Ocean droplet: 512 MB Memory / 10 GB Disk / NYC1 - Ubuntu 24.10 x64

Have you already set up systemd, or are you running it standalone to get set up? DoG uses dotenv to load the environment file, and it expects the environment file to be in $PWD/.env. So if you haven’t configured the systemd cwd, it won’t work. Alternatively, you could have a type :grin:

Thank you so much for your help and patience.

How do I set up systemd?

It’s called Configure a process manager in the docs :slight_smile:

1 Like

Thank you! I’m going to give it a shot.

Hi sorry for all the questions:

“1. Fill in the example, and save to `/lib/systemd/system/discourse_on_ghost.service”
does this mean paste

[Unit]
Description=Discourse on Ghost
Documentation=https://github.vikaspotluri.me/discourse-on-ghost

[Service]
Type=simple
# Don't forget to update this!
WorkingDirectory=/path/to/discourse-on-ghost
# The user might be different for `jwt` mode
User=ghost
Environment="NODE_ENV=production"
# You can get your node path by running `which node`
ExecStart=/path/to/node index.js
Restart=always

[Install]
WantedBy=multi-user.target

into text file and create the directory: /lib/systemd/system/ and save it there?

I just asked someone on Fiverr about doing the install and one said that I can’t get it going with Ghost pro … is this true? Thank you for your generosity answering my questions.

That’s incorrect, you can use DoG on Ghost (Pro) with jwt mode. DOG_DISCOURSE_SSO_TYPE=jwt

1 Like

The directory should already exist from my recollection. But yes, you can paste that template, but be sure to update the vields after the comment lines (starting with #)

1 Like

OK thank you! I will give it a shot … although I may simply ask a developer for some help.