- Add multiple drives
- Search for a file/folder across all those drives.
- Discord Authorization (User visiting the index will have to login with discord, and if the user is in a specific guild then only they can access the index.)
- Go to Discord Developer Portal
- Make a new application
- Go to Oauth2 -> General, copy the client id and client secret, add http://127.0.0.1:5000/authorise to redirect url, you can add https:www.yoursitewherethiswillbehosted.com/authorise too.
- Go to Bot and build a bot, keep the token safe.
- Now open config.py and add the above copied values.
- Add the guild id to config.py in which the user mus be to access the index
- Add the shared drive names and id to the config.py
- Lastly add a service account mail, token_uri, and private key to the config. Make sure that the particular service account can access all the drives you want the index to display.
- Run
pip install -r requirements.txt
- Run main.py
- Index will be at 127.0.0.1:5000
The code can be improved a lot, and load times can be made faster, but out of scope for now.