-
Notifications
You must be signed in to change notification settings - Fork 68
OAuth2 integration for Discord #21
base: master
Are you sure you want to change the base?
Conversation
|
Stuck at .. ` Aug 20 01:17:23 vpsxxxxxxx.vps.ovh.ca systemd[1]: Started Gunicorn instance to serve oauth2. Also, this requires that PMSF is installed in /var/www/html/PMSF as per the oauth2 service env path. Also var/www/html/PMSF/oauth2/env/ didn't get created till after running |
|
I updated the order of the steps which hopefully is a better order. Also, I meant to replace the /var/www/html/PMSF with PATH/TO/PMSF but I never could get it to work anywhere else but that folder. Maybe someone better understanding permissions can figure out how to make it work elsewhere. Two places to look for error messages are in |
|
ModuleNotFoundError: No module named 'wsgi' Running on centos7. Already have installed mod_wsgi |
|
@tallypokemap I haven't run the code yet but there's a circular reference in bot.py and oauth2.py. |
|
Howdy, can't get it run tho to this error: |
|
@tallypokemap Have you stop working on this? |
There will need to be substantial additions to documentation.
These instructions assume a nginx server on Ubuntu 16.04
You will need a discord bot user in your server. Here is a link on how to set it up: https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token
sudo pip3 install virtualenvvirtualenv envsource env/bin/activatepip3 install -r requirements.txtdeactivatesudo systemctl enable oauth2andsudo systemctl start oauth2sudo systemctl restart nginxWhat is still needed: