Skip to content

Proxy Box.com online storage to a local network and translate from HTTPS to HTTP

License

Notifications You must be signed in to change notification settings

r00k135/boxhttpproxy

Repository files navigation

boxhttpproxy

Proxy Box.com online storage to a local network and translate from HTTPS to HTTP - I originally wrote it so that I could serve my home media collection from Box.com via Kodi and using a simple and low cost piece of hardware such as a raspberry pi seemed like a good approach.

  1. Install.
  2. Get API Information.
  3. Run.
  4. References.

Install

Install python3 and dependent modules:

sudo apt-get install python3 python3-pip
pip3 install "boxsdk>=1.5,<2.0"

Clone this repo:

git clone <this repo>

Get API Information (I have already done this and hard-coded the App details)

Access Box Developer Portal and Create a new Custom App and use Standard Oauth 2.0: https://developer.box.com/docs/setting-up-an-oauth-app Provides a "Client ID" and "Client Secret"

Run (as non-root user)

./boxhttpserver.py <port number - optional, default is 8080>

First time you fun this will prompt you to log-in to box and ask you to authorise the app. This runs in the foreground so when you exit the process it unmounts the filesystem. To exit press CTRL-C and then it exits into an interactive python prompt, the press CTRL-D to exit completely.

References

Urllib3: https://github.com/urllib3/urllib3 Box Python SDK: https://github.com/box/box-python-sdk Box Python SDK Intro: http://opensource.box.com/box-python-sdk/tutorials/intro.html Box API: https://developer.box.com/v2.0/reference

About

Proxy Box.com online storage to a local network and translate from HTTPS to HTTP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published