Checking whether a user is logged in on Discourse from another website

Hi folks,

I would like to limit access to certain pages on our website based on whether someone has a member account on our private Discourse. Presumably I would do that by checking by checking on those pages whether the user is logged in on Discourse at the time.

I think the right tool to use is: GitHub - discourse/discourse-auth-proxy: An http proxy that uses the DiscourseConnect protocol to authenticate users

Is there any step-by-step documentation to using it?

Can I install that in the same DigitalOcean droplet as our Discourse site, or do I need to host it somewhere else?