+8
_notes/Discord.md
+8
_notes/Discord.md
+20
_notes/Outline with Discord Login.md
+20
_notes/Outline with Discord Login.md
···
···+[[Outline]] now supports using [[Discord]] as a login method. I was wondering if I would just pay for the hosted version, but couldn't see anything about it, so I emailed them.+I had tried making this work with [[Cloudron]], but I think what happens is that configuring it with Cloudron OIDC interferes with other SSO methods. You need to install it without Cloudron integration (which actually makes it so you can't login…), and then enter the env variables to setup Discord.+I had heard of someone else having success with [[Railway]], so I used the [Outline template for Railway](https://railway.app/template/LNLiaz) to launch it. Tips on the [template discussion page](https://help.railway.com/templates/outline-knowledge-base-fca7338d) help me understand and troubleshoot a bit.+You need to manually add the variables for Discord login, which is [well-documented in the Outline docs](https://docs.getoutline.com/s/hosting/doc/discord-g4JdWFFub6) and pretty straight forward - make a Discord app, grab the settings. You'll want to [enable Discord developer mode](https://help.mee6.xyz/support/solutions/articles/101000482629-how-to-enable-developer-mode) so that you can grab server and role IDs.+First, there was a race condition where the Postgres database wasn't available be. ore the front end. And, it seemed like whatever the template autogenerated meant that it immediately had 76 changes to apply and redeploy.+The Railway comment thread pointed out an issue with the `SECRET_KEY`, which I thought had been integrated into the template. I tried a few things and then followed the link to the [Outline GH issues](https://github.com/outline/outline/discussions/6596#discussioncomment-8600014) which tells you to use `openssl rand -hex 32`. Did that and hardcoded the secret key variable and it all worked!+However, I'm not an admin. So, have to follow [this thread](https://github.com/outline/outline/discussions/3468), but also connect to the public networking of the Postgres instance on Railway.