This is the source code of the bypy OAuth relay server

December 5, 2021 ยท View on GitHub

This is actually quite simple. To run it:

  • Install prerequisites (once only)
pip install -r requirements.txt
  • Config environments
export BAIDU_API_KEY=<baidu-pcs-client-id>
export BAIDU_API_SECRET=<baidu-pcs-client-secret>
export PORT=<the port to listen to>
  • Run gunicorn --bind localhost:8080 app:app

That's it.

NOTE

Profile, Procfile.windows, runtime.txt are for Heroku deployment only, you can ignore them.