-
Notifications
You must be signed in to change notification settings - Fork 23
Hosting for your organisation
Kunwar Shaanjeet Singh Grover edited this page Jul 10, 2021
·
4 revisions
First, you need to host the web portal. The web portal does four things:
- Authenticates you against a CAS portal (feel free to change this to SAML, OAuth2, or whatever your organization prefers to use).
- Authenticates you against Discord OAuth2.
- Stores this data in MongoDB.
- Checks if the server is allowed in the server_config.ini
Change /portal/utils/config.js
and host it where it is publically accessible. You may need to change the source code corresponding to your organization's CAS attributes; specifically, the /cas
express endpoint has settings for which attributes to fetch from the CAS server response.
The bot should have access to the MongoDB database that the web portal stores entries in.
Change the config parameters in /bot/.env.template
and rename it to /bot/.env.
Host like you would host a normal discord bot.
The only difference here is that we are not making available our Discord bot instance and the server instance for public use.